<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FFmpegKit Android API: fftools_ffmpeg_opt.c Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../ffmpeg-kit-icon-v9-small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FFmpegKit Android API
   &#160;<span id="projectnumber">4.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fftools_ffmpeg_opt.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../da/d66/fftools__ffmpeg__opt_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * ffmpeg option parsing</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This file is part of FFmpeg.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * License as published by the Free Software Foundation; either</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * CHANGES 01.2021</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * - NDK r22 incompatibility issues regarding INT64_MAX fixed</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * CHANGES 01.2020</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * - ffprobe support changes</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * CHANGES 12.2019</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * - Concurrent execution support</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> * CHANGES 08.2018</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * --------------------------------------------------------</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * - fftools_ prefix added to file name and parent headers</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * CHANGES 07.2018</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> * --------------------------------------------------------</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"> * - Parentheses placed around assignments in condition to prevent -Wparentheses warning</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html">fftools_ffmpeg.h</a>&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html">fftools_cmdutils.h</a>&quot;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;libavformat/avformat.h&quot;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;libavcodec/avcodec.h&quot;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &quot;libavfilter/avfilter.h&quot;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &quot;libavutil/avassert.h&quot;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#include &quot;libavutil/avstring.h&quot;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#include &quot;libavutil/avutil.h&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#include &quot;libavutil/channel_layout.h&quot;</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#include &quot;libavutil/intreadwrite.h&quot;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#include &quot;libavutil/fifo.h&quot;</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#include &quot;libavutil/mathematics.h&quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#include &quot;libavutil/opt.h&quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#include &quot;libavutil/parseutils.h&quot;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#include &quot;libavutil/pixdesc.h&quot;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#include &quot;libavutil/pixfmt.h&quot;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4dd32a1942a804edb22f2e016406db41">   63</a></span>&#160;<span class="preprocessor">#define DEFAULT_PASS_LOGFILENAME_PREFIX &quot;ffmpeg2pass&quot;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a05dcbce260f33ed79d9e12b29df5c81b">   65</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_str  &quot;%s&quot;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab53f2d7a3313a58027a14edbb6b3371b">   66</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_i    &quot;%i&quot;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55e9ec369c28568761890322f01f0fc9">   67</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_i64  &quot;%&quot;</span>PRId64</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#affa82eeddb5b77ea255732edc8cacda2">   68</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_ui64 &quot;%&quot;</span>PRIu64</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1d7b961f27b365f8a55021c37c3ae42b">   69</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_f    &quot;%f&quot;</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5b3cf8984eccd7698241ded4b9831d9a">   70</a></span>&#160;<span class="preprocessor">#define SPECIFIER_OPT_FMT_dbl  &quot;%lf&quot;</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad93637c5f6fbe2a6c2a31f4855fce0ee">   72</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad93637c5f6fbe2a6c2a31f4855fce0ee">opt_name_codec_names</a>[]               = {<span class="stringliteral">&quot;c&quot;</span>, <span class="stringliteral">&quot;codec&quot;</span>, <span class="stringliteral">&quot;acodec&quot;</span>, <span class="stringliteral">&quot;vcodec&quot;</span>, <span class="stringliteral">&quot;scodec&quot;</span>, <span class="stringliteral">&quot;dcodec&quot;</span>, NULL};</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a071566f5d650660c1121c4a9ecffeaad">   73</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a071566f5d650660c1121c4a9ecffeaad">opt_name_audio_channels</a>[]            = {<span class="stringliteral">&quot;ac&quot;</span>, NULL};</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8a7b7a8fd4c39cfd95d0577ba6516f80">   74</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8a7b7a8fd4c39cfd95d0577ba6516f80">opt_name_audio_sample_rate</a>[]         = {<span class="stringliteral">&quot;ar&quot;</span>, NULL};</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5347d5d678e9927aa9f8b0fdd839b8d3">   75</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5347d5d678e9927aa9f8b0fdd839b8d3">opt_name_frame_rates</a>[]               = {<span class="stringliteral">&quot;r&quot;</span>, NULL};</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55b73904843c6c623ce52acba119705c">   76</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55b73904843c6c623ce52acba119705c">opt_name_max_frame_rates</a>[]           = {<span class="stringliteral">&quot;fpsmax&quot;</span>, NULL};</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a86f38ed6c04b24cdcd998881f6d45563">   77</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a86f38ed6c04b24cdcd998881f6d45563">opt_name_frame_sizes</a>[]               = {<span class="stringliteral">&quot;s&quot;</span>, NULL};</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af4c1703b4956f5e062204d5c36b1721f">   78</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af4c1703b4956f5e062204d5c36b1721f">opt_name_frame_pix_fmts</a>[]            = {<span class="stringliteral">&quot;pix_fmt&quot;</span>, NULL};</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aec5517cf220aff5a0a7e4dc012f72c6c">   79</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aec5517cf220aff5a0a7e4dc012f72c6c">opt_name_ts_scale</a>[]                  = {<span class="stringliteral">&quot;itsscale&quot;</span>, NULL};</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a47524eff5f8b0f4d59e5d7910a14fdb4">   80</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a47524eff5f8b0f4d59e5d7910a14fdb4">opt_name_hwaccels</a>[]                  = {<span class="stringliteral">&quot;hwaccel&quot;</span>, NULL};</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5d127770d764925d75c367f80bc76228">   81</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5d127770d764925d75c367f80bc76228">opt_name_hwaccel_devices</a>[]           = {<span class="stringliteral">&quot;hwaccel_device&quot;</span>, NULL};</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#abf20f110d78c43da06a8a8921ec6aa10">   82</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#abf20f110d78c43da06a8a8921ec6aa10">opt_name_hwaccel_output_formats</a>[]    = {<span class="stringliteral">&quot;hwaccel_output_format&quot;</span>, NULL};</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a28263e9a77f75dbe0b729b27965d7010">   83</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a28263e9a77f75dbe0b729b27965d7010">opt_name_autorotate</a>[]                = {<span class="stringliteral">&quot;autorotate&quot;</span>, NULL};</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae377a2eca138e9ca6f7f70bd7a745c95">   84</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae377a2eca138e9ca6f7f70bd7a745c95">opt_name_autoscale</a>[]                 = {<span class="stringliteral">&quot;autoscale&quot;</span>, NULL};</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a065c1d7227bc63b18b4324ad376568dd">   85</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a065c1d7227bc63b18b4324ad376568dd">opt_name_max_frames</a>[]                = {<span class="stringliteral">&quot;frames&quot;</span>, <span class="stringliteral">&quot;aframes&quot;</span>, <span class="stringliteral">&quot;vframes&quot;</span>, <span class="stringliteral">&quot;dframes&quot;</span>, NULL};</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acbbcf4d3fc3ffdf3ab8fb140380e9b3d">   86</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acbbcf4d3fc3ffdf3ab8fb140380e9b3d">opt_name_bitstream_filters</a>[]         = {<span class="stringliteral">&quot;bsf&quot;</span>, <span class="stringliteral">&quot;absf&quot;</span>, <span class="stringliteral">&quot;vbsf&quot;</span>, NULL};</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a33649f7955e76638005a3b90157d1acb">   87</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a33649f7955e76638005a3b90157d1acb">opt_name_codec_tags</a>[]                = {<span class="stringliteral">&quot;tag&quot;</span>, <span class="stringliteral">&quot;atag&quot;</span>, <span class="stringliteral">&quot;vtag&quot;</span>, <span class="stringliteral">&quot;stag&quot;</span>, NULL};</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a322afb1b7613bc57d3939db06de66225">   88</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a322afb1b7613bc57d3939db06de66225">opt_name_sample_fmts</a>[]               = {<span class="stringliteral">&quot;sample_fmt&quot;</span>, NULL};</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad4e5c141bf83207d19eecec3a9341141">   89</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad4e5c141bf83207d19eecec3a9341141">opt_name_qscale</a>[]                    = {<span class="stringliteral">&quot;q&quot;</span>, <span class="stringliteral">&quot;qscale&quot;</span>, NULL};</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dc51392d39a130d795ab6259f8e5146">   90</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dc51392d39a130d795ab6259f8e5146">opt_name_forced_key_frames</a>[]         = {<span class="stringliteral">&quot;forced_key_frames&quot;</span>, NULL};</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a35587cfd54cad4d313e805729850c814">   91</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a35587cfd54cad4d313e805729850c814">opt_name_force_fps</a>[]                 = {<span class="stringliteral">&quot;force_fps&quot;</span>, NULL};</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e251fca80f93e4d5a3e9c27fca6be8">   92</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e251fca80f93e4d5a3e9c27fca6be8">opt_name_frame_aspect_ratios</a>[]       = {<span class="stringliteral">&quot;aspect&quot;</span>, NULL};</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dbb7cc7c7d0f45bbb80b2e494b0bbff">   93</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dbb7cc7c7d0f45bbb80b2e494b0bbff">opt_name_rc_overrides</a>[]              = {<span class="stringliteral">&quot;rc_override&quot;</span>, NULL};</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb26d364405e283095a6d192d1caeaee">   94</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb26d364405e283095a6d192d1caeaee">opt_name_intra_matrices</a>[]            = {<span class="stringliteral">&quot;intra_matrix&quot;</span>, NULL};</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a290d82d6941e8243459bc374ef322e81">   95</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a290d82d6941e8243459bc374ef322e81">opt_name_inter_matrices</a>[]            = {<span class="stringliteral">&quot;inter_matrix&quot;</span>, NULL};</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac228692b5caafb601b626e82fb036b00">   96</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac228692b5caafb601b626e82fb036b00">opt_name_chroma_intra_matrices</a>[]     = {<span class="stringliteral">&quot;chroma_intra_matrix&quot;</span>, NULL};</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a25ca6c25e6e32e8f98fe714f4eef5e08">   97</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a25ca6c25e6e32e8f98fe714f4eef5e08">opt_name_top_field_first</a>[]           = {<span class="stringliteral">&quot;top&quot;</span>, NULL};</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4929557da5993e7e352caa7b2b969569">   98</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4929557da5993e7e352caa7b2b969569">opt_name_presets</a>[]                   = {<span class="stringliteral">&quot;pre&quot;</span>, <span class="stringliteral">&quot;apre&quot;</span>, <span class="stringliteral">&quot;vpre&quot;</span>, <span class="stringliteral">&quot;spre&quot;</span>, NULL};</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac7ca319e595fa817051314772b70fe19">   99</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac7ca319e595fa817051314772b70fe19">opt_name_copy_initial_nonkeyframes</a>[] = {<span class="stringliteral">&quot;copyinkfr&quot;</span>, NULL};</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a484aa69c151bca853b0f4db4001d8457">  100</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a484aa69c151bca853b0f4db4001d8457">opt_name_copy_prior_start</a>[]          = {<span class="stringliteral">&quot;copypriorss&quot;</span>, NULL};</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac60615242d760b1373faa97e9ca35da0">  101</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac60615242d760b1373faa97e9ca35da0">opt_name_filters</a>[]                   = {<span class="stringliteral">&quot;filter&quot;</span>, <span class="stringliteral">&quot;af&quot;</span>, <span class="stringliteral">&quot;vf&quot;</span>, NULL};</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8d9d6b274d5ebbf27d245081b2d68aea">  102</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8d9d6b274d5ebbf27d245081b2d68aea">opt_name_filter_scripts</a>[]            = {<span class="stringliteral">&quot;filter_script&quot;</span>, NULL};</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a934f418f64986c128430cffdfa11abcc">  103</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a934f418f64986c128430cffdfa11abcc">opt_name_reinit_filters</a>[]            = {<span class="stringliteral">&quot;reinit_filter&quot;</span>, NULL};</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0f2664ba9d547dd1d2a161d6eea38d4e">  104</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0f2664ba9d547dd1d2a161d6eea38d4e">opt_name_fix_sub_duration</a>[]          = {<span class="stringliteral">&quot;fix_sub_duration&quot;</span>, NULL};</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1e1938286bdcbec435fd4153a754c11c">  105</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1e1938286bdcbec435fd4153a754c11c">opt_name_canvas_sizes</a>[]              = {<span class="stringliteral">&quot;canvas_size&quot;</span>, NULL};</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af982effd9489a2439594fba709c01cf4">  106</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af982effd9489a2439594fba709c01cf4">opt_name_pass</a>[]                      = {<span class="stringliteral">&quot;pass&quot;</span>, NULL};</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3bb1a02e27b951f57d8927aa3b017f2e">  107</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3bb1a02e27b951f57d8927aa3b017f2e">opt_name_passlogfiles</a>[]              = {<span class="stringliteral">&quot;passlogfile&quot;</span>, NULL};</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3f6ae3233facfaaad9c9fcfcb5562029">  108</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3f6ae3233facfaaad9c9fcfcb5562029">opt_name_max_muxing_queue_size</a>[]     = {<span class="stringliteral">&quot;max_muxing_queue_size&quot;</span>, NULL};</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a44d8dc72efc9d1c7433964650d7b4365">  109</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a44d8dc72efc9d1c7433964650d7b4365">opt_name_muxing_queue_data_threshold</a>[] = {<span class="stringliteral">&quot;muxing_queue_data_threshold&quot;</span>, NULL};</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa5ed7cfda0a5c2ff397b0d731dbb1005">  110</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa5ed7cfda0a5c2ff397b0d731dbb1005">opt_name_guess_layout_max</a>[]          = {<span class="stringliteral">&quot;guess_layout_max&quot;</span>, NULL};</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4563efb367e0659a32b5b0ad0ac4578d">  111</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4563efb367e0659a32b5b0ad0ac4578d">opt_name_apad</a>[]                      = {<span class="stringliteral">&quot;apad&quot;</span>, NULL};</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7d696d81136510fe5a6de2c83a047743">  112</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7d696d81136510fe5a6de2c83a047743">opt_name_discard</a>[]                   = {<span class="stringliteral">&quot;discard&quot;</span>, NULL};</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aedf58dd37d56e26a71b477ac1c89fceb">  113</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aedf58dd37d56e26a71b477ac1c89fceb">opt_name_disposition</a>[]               = {<span class="stringliteral">&quot;disposition&quot;</span>, NULL};</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8213a5f67f3b7e411fafc95d38ad0ea7">  114</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8213a5f67f3b7e411fafc95d38ad0ea7">opt_name_time_bases</a>[]                = {<span class="stringliteral">&quot;time_base&quot;</span>, NULL};</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a923d5e1d86ce330625dd7d55d4e0b7cd">  115</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a923d5e1d86ce330625dd7d55d4e0b7cd">opt_name_enc_time_bases</a>[]            = {<span class="stringliteral">&quot;enc_time_base&quot;</span>, NULL};</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a61f51ca9f5bb864a0a84e319e5049578">  117</a></span>&#160;<span class="preprocessor">#define WARN_MULTIPLE_OPT_USAGE(name, type, so, st)\</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">{\</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">    char namestr[128] = &quot;&quot;</span>;\</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    const char *spec = so-&gt;specifier &amp;&amp; so-&gt;specifier[0] ? so-&gt;specifier : &quot;&quot;;\</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    for (i = 0; opt_name_##name[i]; i++)\</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        av_strlcatf(namestr, sizeof(namestr), &quot;-%s%s&quot;, opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? &quot;, &quot; : &quot; or &quot;) : &quot;&quot;);\</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    av_log(NULL, AV_LOG_WARNING, &quot;Multiple %s options specified for stream %d, only the last option &#39;-%s%s%s &quot;SPECIFIER_OPT_FMT_##type&quot;&#39; will be used.\n&quot;,\</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;           namestr, st-&gt;index, opt_name_##name[0], spec[0] ? &quot;:&quot; : &quot;&quot;, spec, so-&gt;u.type);\</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">  127</a></span>&#160;<span class="preprocessor">#define MATCH_PER_STREAM_OPT(name, type, outvar, fmtctx, st)\</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">{\</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">    int i, ret, matches = 0;\</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">    SpecifierOpt *so;\</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">    for (i = 0; i &lt; o-&gt;nb_ ## name; i++) {\</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">        char *spec = o-&gt;name[i].specifier;\</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">        if ((ret = check_stream_specifier(fmtctx, st, spec)) &gt; 0) {\</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">            outvar = o-&gt;name[i].u.type;\</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">            so = &amp;o-&gt;name[i];\</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">            matches++;\</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">        } else if (ret &lt; 0)\</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">            exit_program(1);\</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">    }\</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">    if (matches &gt; 1)\</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">       WARN_MULTIPLE_OPT_USAGE(name, type, so, st);\</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">}</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">  144</a></span>&#160;<span class="preprocessor">#define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">{\</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">    int i;\</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">    for (i = 0; i &lt; o-&gt;nb_ ## name; i++) {\</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">        char *spec = o-&gt;name[i].specifier;\</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">        if (!strcmp(spec, mediatype))\</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">            outvar = o-&gt;name[i].u.type;\</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">    }\</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">}</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae4051148bbc3f89a78b6de3f6eddb997">  154</a></span>&#160;<span class="keyword">const</span> <a class="code" href="../../df/d37/struct_h_w_accel.html">HWAccel</a> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a>[] = {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#if CONFIG_VIDEOTOOLBOX</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    { <span class="stringliteral">&quot;videotoolbox&quot;</span>, <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a2aecd4d11bf1f7413cdd45a356e9fa9a">videotoolbox_init</a>, <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205faf941d724f9c78c4ac3174e2f6da82bd3">HWACCEL_VIDEOTOOLBOX</a>, AV_PIX_FMT_VIDEOTOOLBOX },</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#if CONFIG_LIBMFX</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    { <span class="stringliteral">&quot;qsv&quot;</span>,   <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ac1583448d7e49fae8d141dbddf267ff4">qsv_init</a>,   <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fa906ee689a7c68860eb2fe1a88e483f83">HWACCEL_QSV</a>,   AV_PIX_FMT_QSV },</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    { 0 },</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;};</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ab91a5aa23dd763d88ff7cfedeadca8a4">  163</a></span>&#160;__thread <a class="code" href="../../de/dc7/struct_h_w_device.html">HWDevice</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab91a5aa23dd763d88ff7cfedeadca8a4">filter_hw_device</a>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a767f4348992f8faeaf443a3b0292d87a">  165</a></span>&#160;__thread <span class="keywordtype">char</span> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a767f4348992f8faeaf443a3b0292d87a">vstats_filename</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a23afba338ad9fc8a6e65ba0f6400ebc3">  166</a></span>&#160;__thread <span class="keywordtype">char</span> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23afba338ad9fc8a6e65ba0f6400ebc3">sdp_filename</a>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a8454a6a2632a5ce0f2983c9499649ede">  168</a></span>&#160;__thread <span class="keywordtype">float</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8454a6a2632a5ce0f2983c9499649ede">audio_drift_threshold</a> = 0.1;</div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a00548df187333420b3e42a9aa05391bd">  169</a></span>&#160;__thread <span class="keywordtype">float</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a00548df187333420b3e42a9aa05391bd">dts_delta_threshold</a>   = 10;</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a4d87d507b1382b2b4204e77a528ea679">  170</a></span>&#160;__thread <span class="keywordtype">float</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4d87d507b1382b2b4204e77a528ea679">dts_error_threshold</a>   = 3600*30;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a363b436188dcb847ebce8ec575fdb395">  172</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a363b436188dcb847ebce8ec575fdb395">audio_volume</a>      = 256;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a7ebbd72251d3d58fe5b316928a40bed3">  173</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ebbd72251d3d58fe5b316928a40bed3">audio_sync_method</a> = 0;</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">  174</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a7a29c56248090da0d5fb37a87b9a695d">VSYNC_AUTO</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a709d9cd135b22926f3817be99cd98ce9">  175</a></span>&#160;__thread <span class="keywordtype">float</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a709d9cd135b22926f3817be99cd98ce9">frame_drop_threshold</a> = 0;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a7713e7604e1b50d8f1ba5c3c445dde28">  176</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7713e7604e1b50d8f1ba5c3c445dde28">do_deinterlace</a>    = 0;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a6df30d0ba964de54d8050a9b46a45332">  177</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6df30d0ba964de54d8050a9b46a45332">do_benchmark</a>      = 0;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a8f4c866b64b4928d5f63a1a4570b6137">  178</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f4c866b64b4928d5f63a1a4570b6137">do_benchmark_all</a>  = 0;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae2acfe3d539b3a25ffa72f4143215c13">  179</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae2acfe3d539b3a25ffa72f4143215c13">do_hex_dump</a>       = 0;</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae3dab0dd8f469bd52011cfdaa0370ce3">  180</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae3dab0dd8f469bd52011cfdaa0370ce3">do_pkt_dump</a>       = 0;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a4840dc6953824a08972501cff95620e5">  181</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4840dc6953824a08972501cff95620e5">copy_ts</a>           = 0;</div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a9133815d152568ea1d45114b7866253a">  182</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9133815d152568ea1d45114b7866253a">start_at_zero</a>     = 0;</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a06714cf243e224ec6ebc2340c322d33f">  183</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a06714cf243e224ec6ebc2340c322d33f">copy_tb</a>           = -1;</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae684cc527fec35feafac738f59a5fb34">  184</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae684cc527fec35feafac738f59a5fb34">debug_ts</a>          = 0;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#aa30902db873df385e004b04e2ecf7f6f">  185</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa30902db873df385e004b04e2ecf7f6f">exit_on_error</a>     = 0;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a3194c206b4bc6007ec56e8c7cf6596e9">  186</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3194c206b4bc6007ec56e8c7cf6596e9">abort_on_flags</a>    = 0;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a2e982c39d1861f0c59ccdd2fb028ec68">  187</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2e982c39d1861f0c59ccdd2fb028ec68">print_stats</a>       = -1;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ad2242da08cbe3afb277b3be3579935fe">  188</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad2242da08cbe3afb277b3be3579935fe">qp_hist</a>           = 0;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a48480a652b5966f72dc167d6bb44b061">  189</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a48480a652b5966f72dc167d6bb44b061">stdin_interaction</a> = 1;</div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a0d50908e34c08d4fb8de82f0d2ab1281">  190</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0d50908e34c08d4fb8de82f0d2ab1281">frame_bits_per_raw_sample</a> = 0;</div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a388b87af90f84d6eb3c06e9c10f11ec3">  191</a></span>&#160;__thread <span class="keywordtype">float</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a388b87af90f84d6eb3c06e9c10f11ec3">max_error_rate</a>  = 2.0/3;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a5be020cdefd4b772020265e2bb1d256f">  192</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5be020cdefd4b772020265e2bb1d256f">filter_nbthreads</a> = 0;</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a2f2388cbef2d4d1e46d2f5d768c1e916">  193</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f2388cbef2d4d1e46d2f5d768c1e916">filter_complex_nbthreads</a> = 0;</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a71ada39e51376d4fa3efbc6ed705d39b">  194</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a71ada39e51376d4fa3efbc6ed705d39b">vstats_version</a> = 2;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#aebed4ab68dafa693f99e1fa92decedb7">  195</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aebed4ab68dafa693f99e1fa92decedb7">auto_conversion_filters</a> = 1;</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a18d8c3bcec71d962707be76f1bb8f05e">  196</a></span>&#160;__thread int64_t <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a18d8c3bcec71d962707be76f1bb8f05e">stats_period</a> = 500000;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#af848648dccdf2e8b2bfd969886657ed7">  199</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af848648dccdf2e8b2bfd969886657ed7">intra_only</a>         = 0;</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a8268b4d228f88edaf9bbb1dff1d1338c">  200</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8268b4d228f88edaf9bbb1dff1d1338c">file_overwrite</a>     = 0;</div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a7ac571c7c938d6c34daf608a1183364f">  201</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ac571c7c938d6c34daf608a1183364f">no_file_overwrite</a>  = 0;</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ae1a832e0aee85dbc82c89e7f91b94619">  202</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae1a832e0aee85dbc82c89e7f91b94619">do_psnr</a>            = 0;</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a6c0fb8ee2ce9782980e83a03dacabf07">  203</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6c0fb8ee2ce9782980e83a03dacabf07">input_sync</a>;</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">  204</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a> = 0;</div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#af776ea0ed951054185f753d7d255d884">  205</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af776ea0ed951054185f753d7d255d884">ignore_unknown_streams</a> = 0;</div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a5ea9613c6b24f9f9aec20afde671ad3a">  206</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ea9613c6b24f9f9aec20afde671ad3a">copy_unknown_streams</a> = 0;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="../../d8/d4e/fftools__cmdutils_8h.html#a96a58c49cf1904b28615fd1778a12753">  207</a></span>&#160;__thread <span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a96a58c49cf1904b28615fd1778a12753">find_stream_info</a> = 1;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keyword">extern</span> __thread <a class="code" href="../../dc/d1e/struct_option_def.html">OptionDef</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a02e475f4040b6a0cb4236447d9263e00">  211</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e475f4040b6a0cb4236447d9263e00">uninit_options</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o)</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;{</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keyword">const</span> <a class="code" href="../../dc/d1e/struct_option_def.html">OptionDef</a> *po = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="comment">/* all OPT_SPEC and OPT_STRING can be freed in generic way */</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">while</span> (po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a2948275f26ee39085beb74be603fde72">name</a>) {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordtype">void</span> *dst = (uint8_t*)o + po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a05e11e0c85a6fde13e30e19db1e30212">u</a>.<a class="code" href="../../dc/d1e/struct_option_def.html#a1c25e8faf0036e9b0292fa0db6682d6c">off</a>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        if (po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a061799fb9cc6538bd4af1b5f95d91014">flags</a> &amp; <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a125b062e1ed2e8d929ab67f4721aa463">OPT_SPEC</a>) {</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            <a class="code" href="../../dd/da5/struct_specifier_opt.html">SpecifierOpt</a> **so = dst;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <span class="keywordtype">int</span> i, *count = (<span class="keywordtype">int</span>*)(so + 1);</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; *count; i++) {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                av_freep(&amp;(*so)[i].specifier);</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                <span class="keywordflow">if</span> (po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a061799fb9cc6538bd4af1b5f95d91014">flags</a> &amp; <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a91fea349332c05eb78ce3c17202e1dc9">OPT_STRING</a>)</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                    av_freep(&amp;(*so)[i].u.str);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;            }</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            av_freep(so);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            *count = 0;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a061799fb9cc6538bd4af1b5f95d91014">flags</a> &amp; <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#af8d2573bae8637d92cfb1bd84782e8d5">OPT_OFFSET</a> &amp;&amp; po-&gt;<a class="code" href="../../dc/d1e/struct_option_def.html#a061799fb9cc6538bd4af1b5f95d91014">flags</a> &amp; <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a91fea349332c05eb78ce3c17202e1dc9">OPT_STRING</a>)</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            av_freep(dst);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        po++;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    }</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>; i++)</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        av_freep(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>[i].<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a>);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    av_freep(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    av_freep(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#afbfd63b5be2c974c0a2dbf1911ab678b">audio_channel_maps</a>);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    av_freep(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a>);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    av_freep(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;}</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae65e836132b235a3c7dbc7bd00b35d54">  243</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae65e836132b235a3c7dbc7bd00b35d54">init_options</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o)</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;{</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    memset(o, 0, <span class="keyword">sizeof</span>(*o));</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> = INT64_MAX;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#adefe378fc52e83215a84f9fd8fd40e0e">mux_max_delay</a>  = 0.7;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>     = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> = INT64_MAX;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a7af52a5756a9424bbfebe59ab7e08061">limit_filesize</a> = UINT64_MAX;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> = INT_MAX;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a58cdaa9e499f724c724822155f886aa2">accurate_seek</a>  = 1;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a937b3c7359909e3119e2c2e293f6d484">thread_queue_size</a> = -1;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ab8657573c1da211a171168837101af5c">  258</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab8657573c1da211a171168837101af5c">show_hwaccels</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;{</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keyword">enum</span> AVHWDeviceType type = AV_HWDEVICE_TYPE_NONE;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;Hardware acceleration methods:\n&quot;</span>);</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="keywordflow">while</span> ((type = av_hwdevice_iterate_types(type)) !=</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;           AV_HWDEVICE_TYPE_NONE)</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;%s\n&quot;</span>, av_hwdevice_get_type_name(type));</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;}</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="comment">/* return a copy of the input with the stream specifiers removed from the keys */</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ab1f22665dffd8f63fb4f4bce3a1b5b6c">  271</a></span>&#160;AVDictionary *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1f22665dffd8f63fb4f4bce3a1b5b6c">strip_specifiers</a>(AVDictionary *dict)</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;{</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    AVDictionaryEntry *e = NULL;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    AVDictionary    *ret = NULL;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="keywordflow">while</span> ((e = av_dict_get(dict, <span class="stringliteral">&quot;&quot;</span>, e, AV_DICT_IGNORE_SUFFIX))) {</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keywordtype">char</span> *p = strchr(e-&gt;key, <span class="charliteral">&#39;:&#39;</span>);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <span class="keywordflow">if</span> (p)</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            *p = 0;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        av_dict_set(&amp;ret, e-&gt;key, e-&gt;value, 0);</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordflow">if</span> (p)</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            *p = <span class="charliteral">&#39;:&#39;</span>;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;}</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a5c02784e9a4c52395dd293ac626055c3">  288</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5c02784e9a4c52395dd293ac626055c3">opt_abort_on</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;{</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keyword">const</span> AVOption opts[] = {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        { <span class="stringliteral">&quot;abort_on&quot;</span>        , NULL, 0, AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT64_MIN, (double)INT64_MAX, .unit = <span class="stringliteral">&quot;flags&quot;</span> },</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        { <span class="stringliteral">&quot;empty_output&quot;</span>    , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ab169b16d13871a631c18d844ca70eede">ABORT_ON_FLAG_EMPTY_OUTPUT</a>     },    .unit = <span class="stringliteral">&quot;flags&quot;</span> },</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        { <span class="stringliteral">&quot;empty_output_stream&quot;</span>, NULL, 0, AV_OPT_TYPE_CONST, { .i64 = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#aef69b65c48b48532da4c9a99eb744a1e">ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM</a> }, .unit = <span class="stringliteral">&quot;flags&quot;</span> },</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        { NULL },</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    };</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keyword">const</span> AVClass <span class="keyword">class </span>= {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        .class_name = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        .item_name  = av_default_item_name,</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        .option     = opts,</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;        .version    = LIBAVUTIL_VERSION_INT,</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    };</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keyword">const</span> AVClass *pclass = &amp;<span class="keyword">class</span>;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">return</span> av_opt_eval_flags(&amp;pclass, &amp;opts[0], arg, &amp;<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3194c206b4bc6007ec56e8c7cf6596e9">abort_on_flags</a>);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;}</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#aca8fb43a0670d7c55f53d82e219d9237">  307</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aca8fb43a0670d7c55f53d82e219d9237">opt_stats_period</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;{</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    int64_t user_stats_period = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#aa60d6deab0047c29fc1f6602f812774f">parse_time_or_die</a>(opt, arg, 1);</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="keywordflow">if</span> (user_stats_period &lt;= 0) {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;stats_period %s must be positive.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    }</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a18d8c3bcec71d962707be76f1bb8f05e">stats_period</a> = user_stats_period;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    av_log(NULL, AV_LOG_INFO, <span class="stringliteral">&quot;ffmpeg stats and -progress period set to %s.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;}</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a204f57aa5e962e076ad6a222602587d3">  322</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a204f57aa5e962e076ad6a222602587d3">opt_sameq</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;{</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Option &#39;%s&#39; was removed. &quot;</span></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;           <span class="stringliteral">&quot;If you are looking for an option to preserve the quality (which is not &quot;</span></div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;           <span class="stringliteral">&quot;what -%s was for), use -qscale 0 or an equivalent quality factor option.\n&quot;</span>,</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;           opt, opt);</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;}</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160; </div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a8f9afad553b7838b7c592b61b108eb8b">  331</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9afad553b7838b7c592b61b108eb8b">opt_video_channel</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;{</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;This option is deprecated, use -channel.\n&quot;</span>);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(optctx, <span class="stringliteral">&quot;channel&quot;</span>, arg);</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;}</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; </div>
<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a4d934208acdc296fd2b2c79c34851163">  337</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4d934208acdc296fd2b2c79c34851163">opt_video_standard</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;{</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;This option is deprecated, use -standard.\n&quot;</span>);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(optctx, <span class="stringliteral">&quot;standard&quot;</span>, arg);</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;}</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">  343</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;{</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;codec:a&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;}</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a63165e9cf0b0c917a42834d1f1972073">  349</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;{</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;codec:v&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;}</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; </div>
<div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a4a588b5f7cb9e583ca84529ae89b0382">  355</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4a588b5f7cb9e583ca84529ae89b0382">opt_subtitle_codec</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;{</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;codec:s&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;}</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160; </div>
<div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a190b363d38befc8e1dbfc4f68992bffa">  361</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a190b363d38befc8e1dbfc4f68992bffa">opt_data_codec</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;{</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;codec:d&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;}</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a83bedb407ba3c293570b773d4c157ca0">  367</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a83bedb407ba3c293570b773d4c157ca0">opt_map</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;{</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    <a class="code" href="../../db/d60/struct_stream_map.html">StreamMap</a> *m = NULL;</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <span class="keywordtype">int</span> i, negative = 0, file_idx, disabled = 0;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keywordtype">int</span> sync_file_idx = -1, sync_stream_idx = 0;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keywordtype">char</span> *p, *sync;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordtype">char</span> *map;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordtype">char</span> *allow_unused;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">if</span> (*arg == <span class="charliteral">&#39;-&#39;</span>) {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        negative = 1;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        arg++;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    }</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    map = av_strdup(arg);</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordflow">if</span> (!map)</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160; </div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <span class="comment">/* parse sync stream first, just pick first matching stream */</span></div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keywordflow">if</span> ((sync = strchr(map, <span class="charliteral">&#39;,&#39;</span>))) {</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        *sync = 0;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;        sync_file_idx = strtol(sync + 1, &amp;sync, 0);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">if</span> (sync_file_idx &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> || sync_file_idx &lt; 0) {</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid sync file index: %d.\n&quot;</span>, sync_file_idx);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        }</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <span class="keywordflow">if</span> (*sync)</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;            sync++;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[sync_file_idx]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">nb_streams</a>; i++)</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[sync_file_idx]-&gt;ctx,</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;                                       <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[sync_file_idx]-&gt;ctx-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a2253004c4ad8d6cb3256821c656bcf19">streams</a>[i], sync) == 1) {</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;                sync_stream_idx = i;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            }</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordflow">if</span> (i == <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[sync_file_idx]-&gt;<a class="code" href="../../d8/d78/fftools__ffprobe_8c.html#abad15c2aaf9c54ccddd8d8abf6bed069">nb_streams</a>) {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Sync stream specification in map %s does not &quot;</span></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;                                       <span class="stringliteral">&quot;match any streams.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        }</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[sync_file_idx]-&gt;ist_index + sync_stream_idx]-&gt;user_set_discard == AVDISCARD_ALL) {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Sync stream specification in map %s matches a disabled input &quot;</span></div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                                       <span class="stringliteral">&quot;stream.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        }</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    }</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160; </div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keywordflow">if</span> (map[0] == <span class="charliteral">&#39;[&#39;</span>) {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="comment">/* this mapping refers to lavfi output */</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *c = map + 1;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>);</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        m = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a> - 1];</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a> = av_get_token(&amp;c, <span class="stringliteral">&quot;]&quot;</span>);</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        <span class="keywordflow">if</span> (!m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a>) {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Invalid output link label: %s.\n&quot;</span>, map);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        }</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        <span class="keywordflow">if</span> ((allow_unused = strchr(map, <span class="charliteral">&#39;?&#39;</span>)))</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            *allow_unused = 0;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        file_idx = strtol(map, &amp;p, 0);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordflow">if</span> (file_idx &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> || file_idx &lt; 0) {</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid input file index: %d.\n&quot;</span>, file_idx);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        }</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;        <span class="keywordflow">if</span> (negative)</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;            <span class="comment">/* disable some already defined maps */</span></div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>; i++) {</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                m = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>[i];</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;                <span class="keywordflow">if</span> (file_idx == m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a> &amp;&amp;</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>,</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                                           <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;streams[m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a>],</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;                                           *p == <span class="charliteral">&#39;:&#39;</span> ? p + 1 : p) &gt; 0)</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;                    m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a4b146ee6da0df9d55d435d9153636504">disabled</a> = 1;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            }</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[file_idx]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">nb_streams</a>; i++) {</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[file_idx]-&gt;ctx, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[file_idx]-&gt;ctx-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a2253004c4ad8d6cb3256821c656bcf19">streams</a>[i],</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                            *p == <span class="charliteral">&#39;:&#39;</span> ? p + 1 : p) &lt;= 0)</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[file_idx]-&gt;ist_index + i]-&gt;user_set_discard == AVDISCARD_ALL) {</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;                    disabled = 1;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                }</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;                <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>);</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;                m = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a> - 1];</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160; </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;                m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>   = file_idx;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;                m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a> = i;</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160; </div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;                <span class="keywordflow">if</span> (sync_file_idx &gt;= 0) {</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;                    m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aebf79dd4732117dab9f6b88ffe0d6fb0">sync_file_index</a>   = sync_file_idx;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;                    m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a8839b093e6e8ae59892cfe68d9dc99c6">sync_stream_index</a> = sync_stream_idx;</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;                    m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aebf79dd4732117dab9f6b88ffe0d6fb0">sync_file_index</a>   = file_idx;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;                    m-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a8839b093e6e8ae59892cfe68d9dc99c6">sync_stream_index</a> = i;</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                }</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;            }</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    }</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160; </div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    <span class="keywordflow">if</span> (!m) {</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        <span class="keywordflow">if</span> (allow_unused) {</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;            av_log(NULL, AV_LOG_VERBOSE, <span class="stringliteral">&quot;Stream map &#39;%s&#39; matches no streams; ignoring.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (disabled) {</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Stream map &#39;%s&#39; matches disabled streams.\n&quot;</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;                                       <span class="stringliteral">&quot;To ignore this, add a trailing &#39;?&#39; to the map.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Stream map &#39;%s&#39; matches no streams.\n&quot;</span></div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;                                       <span class="stringliteral">&quot;To ignore this, add a trailing &#39;?&#39; to the map.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        }</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    }</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160; </div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    av_freep(&amp;map);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;}</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160; </div>
<div class="line"><a name="l00485"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a6daca6c13986317750131ee7a05844ee">  485</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6daca6c13986317750131ee7a05844ee">opt_attach</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;{</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a34f0a7746fbd5a5848fbdb5fac7ce7af">nb_attachments</a>);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a34f0a7746fbd5a5848fbdb5fac7ce7af">nb_attachments</a> - 1] = arg;</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;}</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160; </div>
<div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ae6d1db10a80aaa34ec2c41f9d45d05b5">  493</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae6d1db10a80aaa34ec2c41f9d45d05b5">opt_map_channel</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;{</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    <span class="keywordtype">int</span> n;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    AVStream *st;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <a class="code" href="../../d6/d2c/struct_audio_channel_map.html">AudioChannelMap</a> *m;</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    <span class="keywordtype">char</span> *allow_unused;</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="keywordtype">char</span> *mapchan;</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    mapchan = av_strdup(arg);</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="keywordflow">if</span> (!mapchan)</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160; </div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#afbfd63b5be2c974c0a2dbf1911ab678b">audio_channel_maps</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2e67c5ed2e0cc9b5cd4a5ff9895d7fc1">nb_audio_channel_maps</a>);</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    m = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#afbfd63b5be2c974c0a2dbf1911ab678b">audio_channel_maps</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2e67c5ed2e0cc9b5cd4a5ff9895d7fc1">nb_audio_channel_maps</a> - 1];</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160; </div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <span class="comment">/* muted channel syntax */</span></div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    n = sscanf(arg, <span class="stringliteral">&quot;%d:%d.%d&quot;</span>, &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a>, &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a>, &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a>);</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keywordflow">if</span> ((n == 1 || n == 3) &amp;&amp; m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a> == -1) {</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a> = m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a> = -1;</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        <span class="keywordflow">if</span> (n == 1)</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;            m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a> = m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a> = -1;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        av_free(mapchan);</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    }</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    <span class="comment">/* normal syntax */</span></div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    n = sscanf(arg, <span class="stringliteral">&quot;%d.%d.%d:%d.%d&quot;</span>,</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;               &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>,  &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>, &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a>,</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;               &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a>, &amp;m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a>);</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160; </div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    <span class="keywordflow">if</span> (n != 3 &amp;&amp; n != 5) {</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Syntax error, mapchan usage: &quot;</span></div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;               <span class="stringliteral">&quot;[file.stream.channel|-1][:syncfile:syncstream]\n&quot;</span>);</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    }</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160; </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    <span class="keywordflow">if</span> (n != 5) <span class="comment">// only file.stream.channel specified</span></div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a> = m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a> = -1;</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160; </div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="comment">/* check input */</span></div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    <span class="keywordflow">if</span> (m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a> &lt; 0 || m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a> &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>) {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;mapchan: invalid input file index: %d\n&quot;</span>,</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;               m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>);</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    }</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    <span class="keywordflow">if</span> (m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a> &lt; 0 ||</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;        m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a> &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">nb_streams</a>) {</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;mapchan: invalid input file stream index #%d.%d\n&quot;</span>,</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;               m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>);</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    }</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    st = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;streams[m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>];</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <span class="keywordflow">if</span> (st-&gt;codecpar-&gt;codec_type != AVMEDIA_TYPE_AUDIO) {</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;mapchan: stream #%d.%d is not an audio stream.\n&quot;</span>,</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;               m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>);</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    }</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    <span class="comment">/* allow trailing ? to map_channel */</span></div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    <span class="keywordflow">if</span> ((allow_unused = strchr(mapchan, <span class="charliteral">&#39;?&#39;</span>)))</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        *allow_unused = 0;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    <span class="keywordflow">if</span> (m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a> &lt; 0 || m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a> &gt;= st-&gt;codecpar-&gt;channels ||</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a> + m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>]-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> == AVDISCARD_ALL) {</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        <span class="keywordflow">if</span> (allow_unused) {</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;            av_log(NULL, AV_LOG_VERBOSE, <span class="stringliteral">&quot;mapchan: invalid audio channel #%d.%d.%d\n&quot;</span>,</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;                    m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a>);</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            av_log(NULL, AV_LOG_FATAL,  <span class="stringliteral">&quot;mapchan: invalid audio channel #%d.%d.%d\n&quot;</span></div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;                    <span class="stringliteral">&quot;To ignore this, add a trailing &#39;?&#39; to the map_channel.\n&quot;</span>,</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;                    m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>, m-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a>);</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        }</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    }</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    av_free(mapchan);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;}</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160; </div>
<div class="line"><a name="l00570"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a08a511c7cab7d97a7dc013197a716016">  570</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a08a511c7cab7d97a7dc013197a716016">opt_sdp_file</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;{</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    av_free(<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23afba338ad9fc8a6e65ba0f6400ebc3">sdp_filename</a>);</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23afba338ad9fc8a6e65ba0f6400ebc3">sdp_filename</a> = av_strdup(arg);</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;}</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;<span class="preprocessor">#if CONFIG_VAAPI</span></div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;<span class="keywordtype">int</span> opt_vaapi_device(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;{</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix = <span class="stringliteral">&quot;vaapi:&quot;</span>;</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <span class="keywordtype">char</span> *tmp;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <span class="keywordtype">int</span> err;</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    tmp = av_asprintf(<span class="stringliteral">&quot;%s%s&quot;</span>, prefix, arg);</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;    <span class="keywordflow">if</span> (!tmp)</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    err = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ad60c6eadc7b29c15236419760b2e0094">hw_device_init_from_string</a>(tmp, NULL);</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    av_free(tmp);</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;        <span class="keywordflow">return</span> err;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;}</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160; </div>
<div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#afbf861d556934c3dcf48cee107df6473">  592</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#afbf861d556934c3dcf48cee107df6473">opt_init_hw_device</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;{</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordflow">if</span> (!strcmp(arg, <span class="stringliteral">&quot;list&quot;</span>)) {</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;        <span class="keyword">enum</span> AVHWDeviceType type = AV_HWDEVICE_TYPE_NONE;</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;Supported hardware device types:\n&quot;</span>);</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;        <span class="keywordflow">while</span> ((type = av_hwdevice_iterate_types(type)) !=</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;               AV_HWDEVICE_TYPE_NONE)</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;%s\n&quot;</span>, av_hwdevice_get_type_name(type));</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(0);</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ad60c6eadc7b29c15236419760b2e0094">hw_device_init_from_string</a>(arg, NULL);</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    }</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;}</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160; </div>
<div class="line"><a name="l00607"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a6fc46048a19a5b21c2d0e21875aad2cb">  607</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6fc46048a19a5b21c2d0e21875aad2cb">opt_filter_hw_device</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;{</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab91a5aa23dd763d88ff7cfedeadca8a4">filter_hw_device</a>) {</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Only one filter device can be used.\n&quot;</span>);</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    }</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab91a5aa23dd763d88ff7cfedeadca8a4">filter_hw_device</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ae46735072274c02ae8a17b80b8faa4dd">hw_device_get_by_name</a>(arg);</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab91a5aa23dd763d88ff7cfedeadca8a4">filter_hw_device</a>) {</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Invalid filter device %s.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    }</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;}</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160; </div>
<div class="line"><a name="l00628"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a119ac6dfc6c391d979611c6878497fb8">  628</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a119ac6dfc6c391d979611c6878497fb8">parse_meta_type</a>(<span class="keywordtype">char</span> *arg, <span class="keywordtype">char</span> *type, <span class="keywordtype">int</span> *index, <span class="keyword">const</span> <span class="keywordtype">char</span> **stream_spec)</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;{</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    <span class="keywordflow">if</span> (*arg) {</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;        *type = *arg;</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        <span class="keywordflow">switch</span> (*arg) {</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;g&#39;</span>:</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;s&#39;</span>:</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;            <span class="keywordflow">if</span> (*(++arg) &amp;&amp; *arg != <span class="charliteral">&#39;:&#39;</span>) {</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid metadata specifier %s.\n&quot;</span>, arg);</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;            }</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;            *stream_spec = *arg == <span class="charliteral">&#39;:&#39;</span> ? arg + 1 : <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;c&#39;</span>:</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;        <span class="keywordflow">case</span> <span class="charliteral">&#39;p&#39;</span>:</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            <span class="keywordflow">if</span> (*(++arg) == <span class="charliteral">&#39;:&#39;</span>)</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;                *index = strtol(++arg, NULL, 0);</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid metadata type %c.\n&quot;</span>, *arg);</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;        }</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;    } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;        *type = <span class="charliteral">&#39;g&#39;</span>;</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;}</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160; </div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ada7285da9f88d7f0a0b31eaf66a33200">  655</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ada7285da9f88d7f0a0b31eaf66a33200">fftools_copy_metadata</a>(<span class="keywordtype">char</span> *outspec, <span class="keywordtype">char</span> *inspec, AVFormatContext *oc, AVFormatContext *ic, <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o)</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;{</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    AVDictionary **meta_in = NULL;</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;    AVDictionary **meta_out = NULL;</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    <span class="keywordtype">int</span> i, ret = 0;</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;    <span class="keywordtype">char</span> type_in, type_out;</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *istream_spec = NULL, *ostream_spec = NULL;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;    <span class="keywordtype">int</span> idx_in = 0, idx_out = 0;</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160; </div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a119ac6dfc6c391d979611c6878497fb8">parse_meta_type</a>(inspec,  &amp;type_in,  &amp;idx_in,  &amp;istream_spec);</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a119ac6dfc6c391d979611c6878497fb8">parse_meta_type</a>(outspec, &amp;type_out, &amp;idx_out, &amp;ostream_spec);</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;    <span class="keywordflow">if</span> (!ic) {</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        <span class="keywordflow">if</span> (type_out == <span class="charliteral">&#39;g&#39;</span> || !*outspec)</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a41bb08c4be0cdb0706728c266a866834">metadata_global_manual</a> = 1;</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        <span class="keywordflow">if</span> (type_out == <span class="charliteral">&#39;s&#39;</span> || !*outspec)</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a5bc5b900472685d4c3c33352f3300254">metadata_streams_manual</a> = 1;</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;        <span class="keywordflow">if</span> (type_out == <span class="charliteral">&#39;c&#39;</span> || !*outspec)</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ab05f5a3458331e424098215ded646189">metadata_chapters_manual</a> = 1;</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    }</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160; </div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;    <span class="keywordflow">if</span> (type_in == <span class="charliteral">&#39;g&#39;</span> || type_out == <span class="charliteral">&#39;g&#39;</span>)</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a41bb08c4be0cdb0706728c266a866834">metadata_global_manual</a> = 1;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;    <span class="keywordflow">if</span> (type_in == <span class="charliteral">&#39;s&#39;</span> || type_out == <span class="charliteral">&#39;s&#39;</span>)</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a5bc5b900472685d4c3c33352f3300254">metadata_streams_manual</a> = 1;</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;    <span class="keywordflow">if</span> (type_in == <span class="charliteral">&#39;c&#39;</span> || type_out == <span class="charliteral">&#39;c&#39;</span>)</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ab05f5a3458331e424098215ded646189">metadata_chapters_manual</a> = 1;</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160; </div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;    <span class="comment">/* ic is NULL when just disabling automatic mappings */</span></div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    <span class="keywordflow">if</span> (!ic)</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160; </div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;<span class="preprocessor">#define METADATA_CHECK_INDEX(index, nb_elems, desc)\</span></div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;<span class="preprocessor">    if ((index) &lt; 0 || (index) &gt;= (nb_elems)) {\</span></div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;<span class="preprocessor">        av_log(NULL, AV_LOG_FATAL, &quot;Invalid %s index %d while processing metadata maps.\n&quot;</span>,\</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;                (desc), (index));\</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;        exit_program(1);\</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    }</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160; </div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;<span class="preprocessor">#define SET_DICT(type, meta, context, index)\</span></div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;<span class="preprocessor">        switch (type) {\</span></div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;<span class="preprocessor">        case &#39;g&#39;:\</span></div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;<span class="preprocessor">            meta = &amp;context-&gt;metadata;\</span></div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;<span class="preprocessor">            break;\</span></div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;<span class="preprocessor">        case &#39;c&#39;:\</span></div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;<span class="preprocessor">            METADATA_CHECK_INDEX(index, context-&gt;nb_chapters, &quot;chapter&quot;</span>)\</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;            meta = &amp;context-&gt;chapters[index]-&gt;metadata;\</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;            break;\</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;        case &#39;p&#39;:\</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;            METADATA_CHECK_INDEX(index, context-&gt;nb_programs, &quot;program&quot;)\</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;            meta = &amp;context-&gt;programs[index]-&gt;metadata;\</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;            break;\</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        case &#39;s&#39;:\</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;            break; <span class="comment">/* handled separately below */</span><span class="preprocessor"> \</span></div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;<span class="preprocessor">        default: av_assert0(0);\</span></div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;<span class="preprocessor">        }\</span></div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0116f637ab1a81dd3079aaba28d280eb">SET_DICT</a>(type_in, meta_in, ic, idx_in);</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0116f637ab1a81dd3079aaba28d280eb">SET_DICT</a>(type_out, meta_out, oc, idx_out);</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160; </div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <span class="comment">/* for input streams choose first matching stream */</span></div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    <span class="keywordflow">if</span> (type_in == <span class="charliteral">&#39;s&#39;</span>) {</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; ic-&gt;nb_streams; i++) {</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;            <span class="keywordflow">if</span> ((ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(ic, ic-&gt;streams[i], istream_spec)) &gt; 0) {</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;                meta_in = &amp;ic-&gt;streams[i]-&gt;metadata;</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;        }</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;        <span class="keywordflow">if</span> (!meta_in) {</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Stream specifier %s does not match  any streams.\n&quot;</span>, istream_spec);</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;        }</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    }</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160; </div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    <span class="keywordflow">if</span> (type_out == <span class="charliteral">&#39;s&#39;</span>) {</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; oc-&gt;nb_streams; i++) {</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;            <span class="keywordflow">if</span> ((ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(oc, oc-&gt;streams[i], ostream_spec)) &gt; 0) {</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;                meta_out = &amp;oc-&gt;streams[i]-&gt;metadata;</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;                av_dict_copy(meta_out, *meta_in, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        }</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;    } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;        av_dict_copy(meta_out, *meta_in, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160; </div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;}</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160; </div>
<div class="line"><a name="l00745"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#aea75291d8c8437ac12c8e2c64e0a9d7d">  745</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aea75291d8c8437ac12c8e2c64e0a9d7d">opt_recording_timestamp</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;{</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    <span class="keywordtype">char</span> buf[128];</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    int64_t recording_timestamp = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#aa60d6deab0047c29fc1f6602f812774f">parse_time_or_die</a>(opt, arg, 0) / 1E6;</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <span class="keyword">struct </span>tm time = *gmtime((time_t*)&amp;recording_timestamp);</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <span class="keywordflow">if</span> (!strftime(buf, <span class="keyword">sizeof</span>(buf), <span class="stringliteral">&quot;creation_time=%Y-%m-%dT%H:%M:%S%z&quot;</span>, &amp;time))</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;        <span class="keywordflow">return</span> -1;</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;metadata&quot;</span>, buf, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160; </div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;    av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;%s is deprecated, set the &#39;creation_time&#39; metadata &quot;</span></div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;                                 <span class="stringliteral">&quot;tag instead.\n&quot;</span>, opt);</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;}</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160; </div>
<div class="line"><a name="l00760"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a580929ca02227da8a5ec81f78b0637dd">  760</a></span>&#160;AVCodec *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">enum</span> AVMediaType type, <span class="keywordtype">int</span> encoder)</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;{</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;    <span class="keyword">const</span> AVCodecDescriptor *desc;</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *codec_string = encoder ? <span class="stringliteral">&quot;encoder&quot;</span> : <span class="stringliteral">&quot;decoder&quot;</span>;</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;    AVCodec *codec;</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160; </div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    codec = encoder ?</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;        avcodec_find_encoder_by_name(name) :</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;        avcodec_find_decoder_by_name(name);</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160; </div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;    <span class="keywordflow">if</span> (!codec &amp;&amp; (desc = avcodec_descriptor_get_by_name(name))) {</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        codec = encoder ? avcodec_find_encoder(desc-&gt;id) :</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;                          avcodec_find_decoder(desc-&gt;id);</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;        <span class="keywordflow">if</span> (codec)</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;            av_log(NULL, AV_LOG_VERBOSE, <span class="stringliteral">&quot;Matched %s &#39;%s&#39; for codec &#39;%s&#39;.\n&quot;</span>,</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;                   codec_string, codec-&gt;name, desc-&gt;name);</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    }</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160; </div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    <span class="keywordflow">if</span> (!codec) {</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unknown %s &#39;%s&#39;\n&quot;</span>, codec_string, name);</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    }</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;    <span class="keywordflow">if</span> (codec-&gt;type != type) {</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid %s type &#39;%s&#39;\n&quot;</span>, codec_string, name);</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;    }</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;    <span class="keywordflow">return</span> codec;</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;}</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160; </div>
<div class="line"><a name="l00789"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a8f9563dc8dcf73b0869cc92b577673e5">  789</a></span>&#160;AVCodec *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9563dc8dcf73b0869cc92b577673e5">choose_decoder</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *s, AVStream *st)</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;{</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <span class="keywordtype">char</span> *codec_name = NULL;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160; </div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(codec_names, str, codec_name, s, st);</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    <span class="keywordflow">if</span> (codec_name) {</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;        AVCodec *codec = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(codec_name, st-&gt;codecpar-&gt;codec_type, 0);</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;        st-&gt;codecpar-&gt;codec_id = codec-&gt;id;</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;        <span class="keywordflow">return</span> codec;</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;    } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;        <span class="keywordflow">return</span> avcodec_find_decoder(st-&gt;codecpar-&gt;codec_id);</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;}</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160; </div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;<span class="comment">/* Add all the streams from the given input file to the global</span></div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;<span class="comment"> * list of input streams. */</span></div>
<div class="line"><a name="l00804"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#acb8764e6b707c0419180699d972e9b70">  804</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb8764e6b707c0419180699d972e9b70">add_input_streams</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *ic)</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;{</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    <span class="keywordtype">int</span> i, ret;</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160; </div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; ic-&gt;nb_streams; i++) {</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;        AVStream *st = ic-&gt;streams[i];</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;        AVCodecParameters *par = st-&gt;codecpar;</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;        <a class="code" href="../../d3/d6e/struct_input_stream.html">InputStream</a> *ist = av_mallocz(<span class="keyword">sizeof</span>(*ist));</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;        <span class="keywordtype">char</span> *framerate = NULL, *hwaccel_device = NULL;</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *hwaccel = NULL;</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;        <span class="keywordtype">char</span> *hwaccel_output_format = NULL;</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;        <span class="keywordtype">char</span> *codec_tag = NULL;</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        <span class="keywordtype">char</span> *next;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;        <span class="keywordtype">char</span> *discard_str = NULL;</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;        <span class="keyword">const</span> AVClass *cc = avcodec_get_class();</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;        <span class="keyword">const</span> AVOption *discard_opt = av_opt_find(&amp;cc, <span class="stringliteral">&quot;skip_frame&quot;</span>, NULL, 0, 0);</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160; </div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;        <span class="keywordflow">if</span> (!ist)</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160; </div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;        <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>);</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;        <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a> - 1] = ist;</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160; </div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a> = st;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ad47d834630eee2dca258aa449fb1df47">file_index</a> = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>;</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ac39249a26eeec2ed084fcc433ec9825e">discard</a> = 1;</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;        st-&gt;discard  = AVDISCARD_ALL;</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#af76c7165931c721b63008034c94d9275">nb_samples</a> = 0;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#aeb79819841b6d172faf8c108db4ffbd0">min_pts</a> = INT64_MAX;</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a911d752902aa8d4666ccefd8c912c91e">max_pts</a> = INT64_MIN;</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160; </div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a0dae26daa277d99147113de4ea449bc1">ts_scale</a> = 1.0;</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(ts_scale, dbl, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a0dae26daa277d99147113de4ea449bc1">ts_scale</a>, ic, st);</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160; </div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#abcb8222561f1ee84a2f7a2157bed356c">autorotate</a> = 1;</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(autorotate, i, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#abcb8222561f1ee84a2f7a2157bed356c">autorotate</a>, ic, st);</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160; </div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(codec_tags, str, codec_tag, ic, st);</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;        <span class="keywordflow">if</span> (codec_tag) {</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;            uint32_t tag = strtol(codec_tag, &amp;next, 0);</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;            <span class="keywordflow">if</span> (*next)</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;                tag = AV_RL32(codec_tag);</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;            st-&gt;codecpar-&gt;codec_tag = tag;</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;        }</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160; </div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a> = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9563dc8dcf73b0869cc92b577673e5">choose_decoder</a>(o, ic, st);</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ae73dddf18b49b6660263bc3a73a44290">decoder_opts</a> = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a98c102ceb9bca5531e6d43f951e9afed">filter_codec_opts</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_id, ic, st, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a>);</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160; </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a809d93e64e76fe2f142102e58dc82a1e">reinit_filters</a> = -1;</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(reinit_filters, i, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a809d93e64e76fe2f142102e58dc82a1e">reinit_filters</a>, ic, st);</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160; </div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(discard, str, discard_str, ic, st);</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> = AVDISCARD_NONE;</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160; </div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;        <span class="keywordflow">if</span> ((o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9cef7b5ff74cf5f810d8bae95b516c66">video_disable</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_VIDEO) ||</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;            (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#aa38553d671e91b5ad6d136923055e5bb">audio_disable</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_AUDIO) ||</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;            (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#af54b258dc24371896f1278cc2652472e">subtitle_disable</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_SUBTITLE) ||</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;            (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a98dc9e32a35d8357e85325bf995fc9ac">data_disable</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_DATA))</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> = AVDISCARD_ALL;</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160; </div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;        <span class="keywordflow">if</span> (discard_str &amp;&amp; av_opt_eval_int(&amp;cc, discard_opt, discard_str, &amp;ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a>) &lt; 0) {</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error parsing discard %s.\n&quot;</span>,</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;                    discard_str);</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;        }</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160; </div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a7ff433fc7a48e7b58a4b91e8ff05cf25">filter_in_rescale_delta_last</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160; </div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;        ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a> = avcodec_alloc_context3(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a>);</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        <span class="keywordflow">if</span> (!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>) {</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error allocating the decoder context.\n&quot;</span>);</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;        }</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160; </div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;        ret = avcodec_parameters_to_context(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>, par);</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error initializing the decoder context.\n&quot;</span>);</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;        }</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160; </div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;        <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a1da3f7560a0c9e44cfd8293a5d3d88ab">bitexact</a>)</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>-&gt;flags |= AV_CODEC_FLAG_BITEXACT;</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160; </div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;        <span class="keywordflow">switch</span> (par-&gt;codec_type) {</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_VIDEO:</div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;            <span class="keywordflow">if</span>(!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a>)</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a> = avcodec_find_decoder(par-&gt;codec_id);</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160; </div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;            <span class="comment">// avformat_find_stream_info() doesn&#39;t set this for us anymore.</span></div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>-&gt;framerate = st-&gt;avg_frame_rate;</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160; </div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_rates, str, framerate, ic, st);</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;            <span class="keywordflow">if</span> (framerate &amp;&amp; av_parse_video_rate(&amp;ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#afbaeaac6e0b1fc3095bb90f17d58621d">framerate</a>,</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;                                                 framerate) &lt; 0) {</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;                av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error parsing framerate %s.\n&quot;</span>,</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;                       framerate);</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;            }</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160; </div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#abc71c343e0ade7e102adb45badfc6243">top_field_first</a> = -1;</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(top_field_first, i, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#abc71c343e0ade7e102adb45badfc6243">top_field_first</a>, ic, st);</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160; </div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a>, str, hwaccel, ic, st);</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(hwaccel_output_formats, str,</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;                                 hwaccel_output_format, ic, st);</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160; </div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;            <span class="keywordflow">if</span> (!hwaccel_output_format &amp;&amp; hwaccel &amp;&amp; !strcmp(hwaccel, <span class="stringliteral">&quot;cuvid&quot;</span>)) {</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;                av_log(NULL, AV_LOG_WARNING,</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;                    <span class="stringliteral">&quot;WARNING: defaulting hwaccel_output_format to cuda for compatibility &quot;</span></div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;                    <span class="stringliteral">&quot;with old commandlines. This behaviour is DEPRECATED and will be removed &quot;</span></div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;                    <span class="stringliteral">&quot;in the future. Please explicitly set \&quot;-hwaccel_output_format cuda\&quot;.\n&quot;</span>);</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a252184ceda81f2d65f63f0470b877bd4">hwaccel_output_format</a> = AV_PIX_FMT_CUDA;</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (hwaccel_output_format) {</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a252184ceda81f2d65f63f0470b877bd4">hwaccel_output_format</a> = av_get_pix_fmt(hwaccel_output_format);</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a252184ceda81f2d65f63f0470b877bd4">hwaccel_output_format</a> == AV_PIX_FMT_NONE) {</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unrecognised hwaccel output &quot;</span></div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;                           <span class="stringliteral">&quot;format: %s&quot;</span>, hwaccel_output_format);</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;                }</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a252184ceda81f2d65f63f0470b877bd4">hwaccel_output_format</a> = AV_PIX_FMT_NONE;</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;            }</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160; </div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;            <span class="keywordflow">if</span> (hwaccel) {</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;                <span class="comment">// The NVDEC hwaccels use a CUDA device, so remap the name here.</span></div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;                <span class="keywordflow">if</span> (!strcmp(hwaccel, <span class="stringliteral">&quot;nvdec&quot;</span>) || !strcmp(hwaccel, <span class="stringliteral">&quot;cuvid&quot;</span>))</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;                    hwaccel = <span class="stringliteral">&quot;cuda&quot;</span>;</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160; </div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;                <span class="keywordflow">if</span> (!strcmp(hwaccel, <span class="stringliteral">&quot;none&quot;</span>))</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;                    ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fa293989c77f66e42d7477243815670be6">HWACCEL_NONE</a>;</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;                <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(hwaccel, <span class="stringliteral">&quot;auto&quot;</span>))</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;                    ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205faf30c0c6c4434db4f22346cdcbd909a02">HWACCEL_AUTO</a>;</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;                <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;                    <span class="keyword">enum</span> AVHWDeviceType type;</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;                    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;                    <span class="keywordflow">for</span> (i = 0; <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a>[i].<a class="code" href="../../df/d37/struct_h_w_accel.html#a82d8cefa2fe98d73edc28eb129b9c510">name</a>; i++) {</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;                        <span class="keywordflow">if</span> (!strcmp(<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a>[i].name, hwaccel)) {</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;                            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a> = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a>[i].<a class="code" href="../../df/d37/struct_h_w_accel.html#a34f08a5231e54a2fb677aa07bfc2f2b8">id</a>;</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;                            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;                        }</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;                    }</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160; </div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;                    <span class="keywordflow">if</span> (!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a>) {</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;                        type = av_hwdevice_find_type_by_name(hwaccel);</div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;                        <span class="keywordflow">if</span> (type != AV_HWDEVICE_TYPE_NONE) {</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;                            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fab96d67115af909300a442d76232c0362">HWACCEL_GENERIC</a>;</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;                            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#af577e45cb148e174ef437f3cbaa8b628">hwaccel_device_type</a> = type;</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;                        }</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;                    }</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160; </div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;                    <span class="keywordflow">if</span> (!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">hwaccel_id</a>) {</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;                        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unrecognized hwaccel: %s.\n&quot;</span>,</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;                               hwaccel);</div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;                        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Supported hwaccels: &quot;</span>);</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;                        type = AV_HWDEVICE_TYPE_NONE;</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;                        <span class="keywordflow">while</span> ((type = av_hwdevice_iterate_types(type)) !=</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;                               AV_HWDEVICE_TYPE_NONE)</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;                            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;%s &quot;</span>,</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;                                   av_hwdevice_get_type_name(type));</div>
<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;                        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;                    }</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;                }</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;            }</div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160; </div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(hwaccel_devices, str, hwaccel_device, ic, st);</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;            <span class="keywordflow">if</span> (hwaccel_device) {</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ae48685e82826c6b5922014d47e2cb6bb">hwaccel_device</a> = av_strdup(hwaccel_device);</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;                <span class="keywordflow">if</span> (!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ae48685e82826c6b5922014d47e2cb6bb">hwaccel_device</a>)</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;            }</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160; </div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a05769ba0518105626a6d64386795b48f">hwaccel_pix_fmt</a> = AV_PIX_FMT_NONE;</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160; </div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_AUDIO:</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a99e6bf56ec091f8af11744e4b0499327">guess_layout_max</a> = INT_MAX;</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(guess_layout_max, i, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a99e6bf56ec091f8af11744e4b0499327">guess_layout_max</a>, ic, st);</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;            <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2c6d81c909bf3abbf4685cfadd458a87">guess_input_channel_layout</a>(ist);</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_DATA:</div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_SUBTITLE: {</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;            <span class="keywordtype">char</span> *canvas_size = NULL;</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;            <span class="keywordflow">if</span>(!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a>)</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;                ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">dec</a> = avcodec_find_decoder(par-&gt;codec_id);</div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(fix_sub_duration, i, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a1ed159d9bc9d71428699968505629b38">fix_sub_duration</a>, ic, st);</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(canvas_sizes, str, canvas_size, ic, st);</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;            <span class="keywordflow">if</span> (canvas_size &amp;&amp;</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;                av_parse_video_size(&amp;ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>-&gt;width, &amp;ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>-&gt;height, canvas_size) &lt; 0) {</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid canvas size: %s.\n&quot;</span>, canvas_size);</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;            }</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;        }</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_ATTACHMENT:</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;        <span class="keywordflow">case</span> AVMEDIA_TYPE_UNKNOWN:</div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;            abort();</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;        }</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160; </div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;        ret = avcodec_parameters_from_context(par, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">dec_ctx</a>);</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error initializing the decoder context.\n&quot;</span>);</div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;        }</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;    }</div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;}</div>
<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160; </div>
<div class="line"><a name="l01012"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a9bc9a2fdcee987f9900054f9d7dc28e9"> 1012</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9bc9a2fdcee987f9900054f9d7dc28e9">assert_file_overwrite</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;{</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *proto_name = avio_find_protocol_name(filename);</div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160; </div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8268b4d228f88edaf9bbb1dff1d1338c">file_overwrite</a> &amp;&amp; <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ac571c7c938d6c34daf608a1183364f">no_file_overwrite</a>) {</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Error, both -y and -n supplied. Exiting.\n&quot;</span>);</div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;    }</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160; </div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8268b4d228f88edaf9bbb1dff1d1338c">file_overwrite</a>) {</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;        <span class="keywordflow">if</span> (proto_name &amp;&amp; !strcmp(proto_name, <span class="stringliteral">&quot;file&quot;</span>) &amp;&amp; avio_check(filename, 0) == 0) {</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a48480a652b5966f72dc167d6bb44b061">stdin_interaction</a> &amp;&amp; !<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ac571c7c938d6c34daf608a1183364f">no_file_overwrite</a>) {</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;                fprintf(stderr,<span class="stringliteral">&quot;File &#39;%s&#39; already exists. Overwrite ? [y/N] &quot;</span>, filename);</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;                fflush(stderr);</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;                <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19c97d7729be97389faaf4aaac8c3e88">term_exit</a>();</div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;                signal(SIGINT, SIG_DFL);</div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;                <span class="keywordflow">if</span> (!<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a40394fd5966088e759ce995186773700">read_yesno</a>()) {</div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Not overwriting - exiting\n&quot;</span>);</div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;                }</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;                <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac7072b9c76dd77ce9900197d0133b0ba">term_init</a>();</div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;            }</div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;File &#39;%s&#39; already exists. Exiting.\n&quot;</span>, filename);</div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;            }</div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;        }</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;    }</div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160; </div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;    <span class="keywordflow">if</span> (proto_name &amp;&amp; !strcmp(proto_name, <span class="stringliteral">&quot;file&quot;</span>)) {</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>; i++) {</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;             <a class="code" href="../../d8/d99/struct_input_file.html">InputFile</a> *file = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[i];</div>
<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;             <span class="keywordflow">if</span> (file-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;iformat-&gt;flags &amp; AVFMT_NOFILE)</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;                 <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;             <span class="keywordflow">if</span> (!strcmp(filename, file-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;url)) {</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;                 av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Output %s same as Input #%d - exiting\n&quot;</span>, filename, i);</div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;                 av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;FFmpeg cannot edit existing files in-place.\n&quot;</span>);</div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;                 <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;             }</div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;        }</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;    }</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;}</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160; </div>
<div class="line"><a name="l01055"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae5e3335eee688ea6d2fbe00ae4fcefb6"> 1055</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae5e3335eee688ea6d2fbe00ae4fcefb6">dump_attachment</a>(AVStream *st, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;{</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;    AVIOContext *out = NULL;</div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;    AVDictionaryEntry *e;</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160; </div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;    <span class="keywordflow">if</span> (!st-&gt;codecpar-&gt;extradata_size) {</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;No extradata to dump in stream #%d:%d.\n&quot;</span>,</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;               <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> - 1, st-&gt;index);</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;    }</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;    <span class="keywordflow">if</span> (!*filename &amp;&amp; (e = av_dict_get(st-&gt;metadata, <span class="stringliteral">&quot;filename&quot;</span>, NULL, 0)))</div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;        filename = e-&gt;value;</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;    <span class="keywordflow">if</span> (!*filename) {</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;No filename specified and no &#39;filename&#39; tag&quot;</span></div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;               <span class="stringliteral">&quot;in stream #%d:%d.\n&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> - 1, st-&gt;index);</div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;    }</div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160; </div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9bc9a2fdcee987f9900054f9d7dc28e9">assert_file_overwrite</a>(filename);</div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160; </div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;    <span class="keywordflow">if</span> ((ret = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(&amp;out, filename, AVIO_FLAG_WRITE, &amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>, NULL)) &lt; 0) {</div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not open file %s for writing.\n&quot;</span>,</div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;               filename);</div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;    }</div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160; </div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;    avio_write(out, st-&gt;codecpar-&gt;extradata, st-&gt;codecpar-&gt;extradata_size);</div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;    avio_flush(out);</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;    avio_close(out);</div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;}</div>
<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160; </div>
<div class="line"><a name="l01087"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a540336d8019a727fad05b1d6c53e7c15"> 1087</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a540336d8019a727fad05b1d6c53e7c15">open_input_file</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;{</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;    <a class="code" href="../../d8/d99/struct_input_file.html">InputFile</a> *f;</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;    AVFormatContext *ic;</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;    AVInputFormat *file_iformat = NULL;</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;    <span class="keywordtype">int</span> err, i, ret;</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;    int64_t timestamp;</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;    AVDictionary *unused_opts = NULL;</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;    AVDictionaryEntry *e = NULL;</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;    <span class="keywordtype">char</span> *   video_codec_name = NULL;</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;    <span class="keywordtype">char</span> *   audio_codec_name = NULL;</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;    <span class="keywordtype">char</span> *subtitle_codec_name = NULL;</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;    <span class="keywordtype">char</span> *    data_codec_name = NULL;</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;    <span class="keywordtype">int</span> scan_all_pmts_set = 0;</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160; </div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> != INT64_MAX &amp;&amp; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> != INT64_MAX) {</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> = INT64_MAX;</div>
<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;-t and -to cannot be used together; using -t.\n&quot;</span>);</div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;    }</div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160; </div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> != INT64_MAX &amp;&amp; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> == INT64_MAX) {</div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;        int64_t start_time = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> == AV_NOPTS_VALUE ? 0 : o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>;</div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;        <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> &lt;= start_time) {</div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;-to value smaller than -ss; aborting.\n&quot;</span>);</div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> - start_time;</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;        }</div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;    }</div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160; </div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a295fefa29d7132a93db9110dce6eeab9">format</a>) {</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;        <span class="keywordflow">if</span> (!(file_iformat = av_find_input_format(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a295fefa29d7132a93db9110dce6eeab9">format</a>))) {</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unknown input format: &#39;%s&#39;\n&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a295fefa29d7132a93db9110dce6eeab9">format</a>);</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>&#160;        }</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;    }</div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160; </div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;    <span class="keywordflow">if</span> (!strcmp(filename, <span class="stringliteral">&quot;-&quot;</span>))</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;        filename = <span class="stringliteral">&quot;pipe:&quot;</span>;</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160; </div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a48480a652b5966f72dc167d6bb44b061">stdin_interaction</a> &amp;= strncmp(filename, <span class="stringliteral">&quot;pipe:&quot;</span>, 5) &amp;&amp;</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;                         strcmp(filename, <span class="stringliteral">&quot;/dev/stdin&quot;</span>);</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160; </div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;    <span class="comment">/* get default parameters from command line */</span></div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;    ic = avformat_alloc_context();</div>
<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;    <span class="keywordflow">if</span> (!ic) {</div>
<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a>(filename, AVERROR(ENOMEM));</div>
<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;    }</div>
<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ae75f89a074068ab06a98efc15b65bb70">nb_audio_sample_rate</a>) {</div>
<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;        av_dict_set_int(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;sample_rate&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2dff4fd7f6b8f7028e4e4fe43f0d3249">audio_sample_rate</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ae75f89a074068ab06a98efc15b65bb70">nb_audio_sample_rate</a> - 1].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a7d6d60788f2f4e5bca13634aba58177f">i</a>, 0);</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;    }</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a7e0e4131b5ffb9d53019afd8910fc3ec">nb_audio_channels</a>) {</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;        <span class="comment">/* because we set audio_channels based on both the &quot;ac&quot; and</span></div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;<span class="comment">         * &quot;channel_layout&quot; options, we need to check that the specified</span></div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;<span class="comment">         * demuxer actually has the &quot;channels&quot; option before setting it */</span></div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;        <span class="keywordflow">if</span> (file_iformat &amp;&amp; file_iformat-&gt;priv_class &amp;&amp;</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;            av_opt_find(&amp;file_iformat-&gt;priv_class, <span class="stringliteral">&quot;channels&quot;</span>, NULL, 0,</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;                        AV_OPT_SEARCH_FAKE_OBJ)) {</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;            av_dict_set_int(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;channels&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a8d31ed47dd3c6a795047bd4e92e60b4e">audio_channels</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a7e0e4131b5ffb9d53019afd8910fc3ec">nb_audio_channels</a> - 1].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a7d6d60788f2f4e5bca13634aba58177f">i</a>, 0);</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;        }</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;    }</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a336023409c88336cfdc784b50d2e0860">nb_frame_rates</a>) {</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;        <span class="comment">/* set the format-level framerate option;</span></div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;<span class="comment">         * this is important for video grabbers, e.g. x11 */</span></div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;        <span class="keywordflow">if</span> (file_iformat &amp;&amp; file_iformat-&gt;priv_class &amp;&amp;</div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;            av_opt_find(&amp;file_iformat-&gt;priv_class, <span class="stringliteral">&quot;framerate&quot;</span>, NULL, 0,</div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;                        AV_OPT_SEARCH_FAKE_OBJ)) {</div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;            av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;framerate&quot;</span>,</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;                        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a992eda3c4ddcd938885a702e85919cc8">frame_rates</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a336023409c88336cfdc784b50d2e0860">nb_frame_rates</a> - 1].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, 0);</div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;        }</div>
<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;    }</div>
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a66d4d1e81f3c566dbf20027ae37173d8">nb_frame_sizes</a>) {</div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;video_size&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a480f12400c3c6da75bf2323d76bc1179">frame_sizes</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a66d4d1e81f3c566dbf20027ae37173d8">nb_frame_sizes</a> - 1].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, 0);</div>
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;    }</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ad5d44d5a36310415733fb2b4f8fc9aa5">nb_frame_pix_fmts</a>)</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;pixel_format&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a0a7993fd78fe99ec2d1819f8ca7e2a56">frame_pix_fmts</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ad5d44d5a36310415733fb2b4f8fc9aa5">nb_frame_pix_fmts</a> - 1].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, 0);</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160; </div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str,    video_codec_name, ic, <span class="stringliteral">&quot;v&quot;</span>);</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str,    audio_codec_name, ic, <span class="stringliteral">&quot;a&quot;</span>);</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str, subtitle_codec_name, ic, <span class="stringliteral">&quot;s&quot;</span>);</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str,     data_codec_name, ic, <span class="stringliteral">&quot;d&quot;</span>);</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160; </div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;    <span class="keywordflow">if</span> (video_codec_name)</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;        ic-&gt;video_codec    = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(video_codec_name   , AVMEDIA_TYPE_VIDEO   , 0);</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;    <span class="keywordflow">if</span> (audio_codec_name)</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;        ic-&gt;audio_codec    = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(audio_codec_name   , AVMEDIA_TYPE_AUDIO   , 0);</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;    <span class="keywordflow">if</span> (subtitle_codec_name)</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;        ic-&gt;subtitle_codec = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0);</div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;    <span class="keywordflow">if</span> (data_codec_name)</div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;        ic-&gt;data_codec     = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(data_codec_name    , AVMEDIA_TYPE_DATA    , 0);</div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160; </div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;    ic-&gt;video_codec_id     = video_codec_name    ? ic-&gt;video_codec-&gt;id    : AV_CODEC_ID_NONE;</div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;    ic-&gt;audio_codec_id     = audio_codec_name    ? ic-&gt;audio_codec-&gt;id    : AV_CODEC_ID_NONE;</div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;    ic-&gt;subtitle_codec_id  = subtitle_codec_name ? ic-&gt;subtitle_codec-&gt;id : AV_CODEC_ID_NONE;</div>
<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;    ic-&gt;data_codec_id      = data_codec_name     ? ic-&gt;data_codec-&gt;id     : AV_CODEC_ID_NONE;</div>
<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160; </div>
<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;    ic-&gt;flags |= AVFMT_FLAG_NONBLOCK;</div>
<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a1da3f7560a0c9e44cfd8293a5d3d88ab">bitexact</a>)</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;        ic-&gt;flags |= AVFMT_FLAG_BITEXACT;</div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;    ic-&gt;interrupt_callback = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>;</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160; </div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;    <span class="keywordflow">if</span> (!av_dict_get(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;scan_all_pmts&quot;</span>, NULL, AV_DICT_MATCH_CASE)) {</div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;scan_all_pmts&quot;</span>, <span class="stringliteral">&quot;1&quot;</span>, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;        scan_all_pmts_set = 1;</div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;    }</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;    <span class="comment">/* open the input file with generic avformat function */</span></div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;    err = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a0ceafc1e6f5e79ebe5a56f7820e40929">avformat_open_input</a>(&amp;ic, filename, file_iformat, &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>);</div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;    <span class="keywordflow">if</span> (err &lt; 0) {</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a>(filename, err);</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;        <span class="keywordflow">if</span> (err == AVERROR_PROTOCOL_NOT_FOUND)</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Did you mean file:%s?\n&quot;</span>, filename);</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;    }</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;    <span class="keywordflow">if</span> (scan_all_pmts_set)</div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;scan_all_pmts&quot;</span>, NULL, AV_DICT_MATCH_CASE);</div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#aa34a84957adf117f712efcb6cbfd834f">remove_avoptions</a>(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>);</div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#aeceadb162c07ff048a54d0d70cc851fb">assert_avoptions</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>);</div>
<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160; </div>
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;    <span class="comment">/* apply forced codec ids */</span></div>
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; ic-&gt;nb_streams; i++)</div>
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9563dc8dcf73b0869cc92b577673e5">choose_decoder</a>(o, ic, ic-&gt;streams[i]);</div>
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160; </div>
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a96a58c49cf1904b28615fd1778a12753">find_stream_info</a>) {</div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;        AVDictionary **opts = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a6246f47f8e3ef9a3e99e5d1457c7d197">setup_find_stream_info_opts</a>(ic, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>);</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;        <span class="keywordtype">int</span> orig_nb_streams = ic-&gt;nb_streams;</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160; </div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;        <span class="comment">/* If not enough info to get the stream parameters, we decode the</span></div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;<span class="comment">           first frames to get it. (used in mpeg case for example) */</span></div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;        ret = avformat_find_stream_info(ic, opts);</div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160; </div>
<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; orig_nb_streams; i++)</div>
<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;            av_dict_free(&amp;opts[i]);</div>
<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;        av_freep(&amp;opts);</div>
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160; </div>
<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;%s: could not find codec parameters\n&quot;</span>, filename);</div>
<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;            <span class="keywordflow">if</span> (ic-&gt;nb_streams == 0) {</div>
<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;                <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#afc5dd40d58ea919eff6eee28cab77c18">avformat_close_input</a>(&amp;ic);</div>
<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;            }</div>
<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>&#160;        }</div>
<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;    }</div>
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160; </div>
<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> != AV_NOPTS_VALUE &amp;&amp; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> != AV_NOPTS_VALUE) {</div>
<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Cannot use -ss and -sseof both, using -ss for %s\n&quot;</span>, filename);</div>
<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;    }</div>
<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160; </div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> != AV_NOPTS_VALUE) {</div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;        <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> &gt;= 0) {</div>
<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;-sseof value must be negative; aborting\n&quot;</span>);</div>
<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;        }</div>
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;        <span class="keywordflow">if</span> (ic-&gt;duration &gt; 0) {</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">start_time_eof</a> + ic-&gt;duration;</div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;            <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> &lt; 0) {</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;                av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;-sseof value seeks to before start of file %s; ignored\n&quot;</span>, filename);</div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;                o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;            }</div>
<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;        } <span class="keywordflow">else</span></div>
<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;            av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Cannot use -sseof, duration of %s not known\n&quot;</span>, filename);</div>
<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;    }</div>
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;    timestamp = (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> == AV_NOPTS_VALUE) ? 0 : o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>;</div>
<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;    <span class="comment">/* add the stream start time */</span></div>
<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;    if (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#af81d53f595b3e6793b44515fe556eedb">seek_timestamp</a> &amp;&amp; ic-&gt;start_time != AV_NOPTS_VALUE)</div>
<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;        timestamp += ic-&gt;start_time;</div>
<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160; </div>
<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;    <span class="comment">/* if seeking requested, we execute it */</span></div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> != AV_NOPTS_VALUE) {</div>
<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;        int64_t seek_timestamp = timestamp;</div>
<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160; </div>
<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;        <span class="keywordflow">if</span> (!(ic-&gt;iformat-&gt;flags &amp; AVFMT_SEEK_TO_PTS)) {</div>
<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;            <span class="keywordtype">int</span> dts_heuristic = 0;</div>
<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;            <span class="keywordflow">for</span> (i=0; i&lt;ic-&gt;nb_streams; i++) {</div>
<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;                <span class="keyword">const</span> AVCodecParameters *par = ic-&gt;streams[i]-&gt;codecpar;</div>
<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;                <span class="keywordflow">if</span> (par-&gt;video_delay) {</div>
<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;                    dts_heuristic = 1;</div>
<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;                }</div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;            }</div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;            <span class="keywordflow">if</span> (dts_heuristic) {</div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;                seek_timestamp -= 3*AV_TIME_BASE / 23;</div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;            }</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;        }</div>
<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160;        ret = avformat_seek_file(ic, -1, INT64_MIN, seek_timestamp, seek_timestamp, 0);</div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;            av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;%s: could not seek to position %0.3f\n&quot;</span>,</div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;                   filename, (<span class="keywordtype">double</span>)timestamp / AV_TIME_BASE);</div>
<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;        }</div>
<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160;    }</div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160; </div>
<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160;    <span class="comment">/* update the current parameters so that they match the one of the input stream */</span></div>
<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb8764e6b707c0419180699d972e9b70">add_input_streams</a>(o, ic);</div>
<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160; </div>
<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;    <span class="comment">/* dump the file content */</span></div>
<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;    av_dump_format(ic, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>, filename, 0);</div>
<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160; </div>
<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>);</div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;    f = av_mallocz(<span class="keyword">sizeof</span>(*f));</div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;    <span class="keywordflow">if</span> (!f)</div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> - 1] = f;</div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160; </div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>        = ic;</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a>  = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a> - ic-&gt;nb_streams;</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#af29c0dd6f71cb1454c23abebca06f604">start_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>;</div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a66ab0bb6b0332c27bb6b51a0b67d1459">recording_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a>;</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4ffe49e7403ae36ac4bdff5a7a0a3486">input_ts_offset</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2c4c55a84195a848045a69557adef98f">input_ts_offset</a>;</div>
<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a098fa89f90be39e95d5e42041e8cebfb">ts_offset</a>  = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2c4c55a84195a848045a69557adef98f">input_ts_offset</a> - (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4840dc6953824a08972501cff95620e5">copy_ts</a> ? (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9133815d152568ea1d45114b7866253a">start_at_zero</a> &amp;&amp; ic-&gt;start_time != AV_NOPTS_VALUE ? ic-&gt;start_time : 0) : timestamp);</div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">nb_streams</a> = ic-&gt;nb_streams;</div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a44943da9b6e2a44ba3951a6203b1acc4">rate_emu</a>   = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a3132753aec8bcb63437da6a28c8104e2">rate_emu</a>;</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a0d2afa337cfd75b91096045ed941a494">accurate_seek</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a58cdaa9e499f724c724822155f886aa2">accurate_seek</a>;</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a5553e5dc5f52efdf42e8f5e2afb84156">loop</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#adb4fef1beb9570a46d0ba40c3d309a5b">loop</a>;</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a0d245cef00bdb0fa9a365ab8480ade2f">duration</a> = 0;</div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;    f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a6b5d8ebb8e444603bd2c35f683b2790b">time_base</a> = (AVRational){ 1, 1 };</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;<span class="preprocessor">#if HAVE_THREADS</span></div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;    f-&gt;thread_queue_size = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a937b3c7359909e3119e2c2e293f6d484">thread_queue_size</a>;</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160; </div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;    <span class="comment">/* check if all codec options have been used */</span></div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;    unused_opts = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1f22665dffd8f63fb4f4bce3a1b5b6c">strip_specifiers</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>);</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;    <span class="keywordflow">for</span> (i = f-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a>; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>; i++) {</div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;        e = NULL;</div>
<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;        <span class="keywordflow">while</span> ((e = av_dict_get(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;decoder_opts, <span class="stringliteral">&quot;&quot;</span>, e,</div>
<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;                                AV_DICT_IGNORE_SUFFIX)))</div>
<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;            av_dict_set(&amp;unused_opts, e-&gt;key, NULL, 0);</div>
<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;    }</div>
<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160; </div>
<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;    e = NULL;</div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;    <span class="keywordflow">while</span> ((e = av_dict_get(unused_opts, <span class="stringliteral">&quot;&quot;</span>, e, AV_DICT_IGNORE_SUFFIX))) {</div>
<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;        <span class="keyword">const</span> AVClass *<span class="keyword">class </span>= avcodec_get_class();</div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;        <span class="keyword">const</span> AVOption *option = av_opt_find(&amp;<span class="keyword">class</span>, e-&gt;key, NULL, 0,</div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;                                             AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);</div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;        <span class="keyword">const</span> AVClass *fclass = avformat_get_class();</div>
<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;        <span class="keyword">const</span> AVOption *foption = av_opt_find(&amp;fclass, e-&gt;key, NULL, 0,</div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;                                             AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);</div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;        <span class="keywordflow">if</span> (!option || foption)</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160; </div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160; </div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;        <span class="keywordflow">if</span> (!(option-&gt;flags &amp; AV_OPT_FLAG_DECODING_PARAM)) {</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Codec AVOption %s (%s) specified for &quot;</span></div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;                   <span class="stringliteral">&quot;input file #%d (%s) is not a decoding option.\n&quot;</span>, e-&gt;key,</div>
<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;                   option-&gt;help ? option-&gt;help : <span class="stringliteral">&quot;&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> - 1,</div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;                   filename);</div>
<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;        }</div>
<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160; </div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Codec AVOption %s (%s) specified for &quot;</span></div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;               <span class="stringliteral">&quot;input file #%d (%s) has not been used for any stream. The most &quot;</span></div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;               <span class="stringliteral">&quot;likely reason is either wrong type (e.g. a video option with &quot;</span></div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;               <span class="stringliteral">&quot;no video streams) or that it is a private option of some decoder &quot;</span></div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;               <span class="stringliteral">&quot;which was not actually used for any stream.\n&quot;</span>, e-&gt;key,</div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;               option-&gt;help ? option-&gt;help : <span class="stringliteral">&quot;&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a> - 1, filename);</div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;    }</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;    av_dict_free(&amp;unused_opts);</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160; </div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6b29b20e59b90528943e105de4006148">nb_dump_attachment</a>; i++) {</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;        <span class="keywordtype">int</span> j;</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160; </div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;        <span class="keywordflow">for</span> (j = 0; j &lt; ic-&gt;nb_streams; j++) {</div>
<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;            AVStream *st = ic-&gt;streams[j];</div>
<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160; </div>
<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(ic, st, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a0cb98e36b0f4ceaa7700573f3f99a820">dump_attachment</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">specifier</a>) == 1)</div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;                <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae5e3335eee688ea6d2fbe00ae4fcefb6">dump_attachment</a>(st, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a0cb98e36b0f4ceaa7700573f3f99a820">dump_attachment</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>);</div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;        }</div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;    }</div>
<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160; </div>
<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a> = 1;</div>
<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160; </div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;}</div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160; </div>
<div class="line"><a name="l01361"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a663c23e27b0412e3d67205757114d16b"> 1361</a></span>&#160;uint8_t *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a663c23e27b0412e3d67205757114d16b">get_line</a>(AVIOContext *s)</div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;{</div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;    AVIOContext *line;</div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;    uint8_t *buf;</div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;    <span class="keywordtype">char</span> c;</div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160; </div>
<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;    <span class="keywordflow">if</span> (avio_open_dyn_buf(&amp;line) &lt; 0) {</div>
<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not alloc buffer for reading preset.\n&quot;</span>);</div>
<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;    }</div>
<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160; </div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;    <span class="keywordflow">while</span> ((c = avio_r8(s)) &amp;&amp; c != <span class="charliteral">&#39;\n&#39;</span>)</div>
<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;        avio_w8(line, c);</div>
<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;    avio_w8(line, 0);</div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;    avio_close_dyn_buf(line, &amp;buf);</div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160; </div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;    <span class="keywordflow">return</span> buf;</div>
<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;}</div>
<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160; </div>
<div class="line"><a name="l01380"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#aa9e1780c2ce777fc9a0d205b5769324b"> 1380</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa9e1780c2ce777fc9a0d205b5769324b">get_preset_file_2</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *preset_name, <span class="keyword">const</span> <span class="keywordtype">char</span> *codec_name, AVIOContext **s)</div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;{</div>
<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;    <span class="keywordtype">int</span> i, ret = -1;</div>
<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;    <span class="keywordtype">char</span> filename[1000];</div>
<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *base[3] = { getenv(<span class="stringliteral">&quot;AVCONV_DATADIR&quot;</span>),</div>
<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;                            getenv(<span class="stringliteral">&quot;HOME&quot;</span>),</div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;                            AVCONV_DATADIR,</div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;                            };</div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160; </div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; FF_ARRAY_ELEMS(base) &amp;&amp; ret &lt; 0; i++) {</div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;        <span class="keywordflow">if</span> (!base[i])</div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;        <span class="keywordflow">if</span> (codec_name) {</div>
<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;            snprintf(filename, <span class="keyword">sizeof</span>(filename), <span class="stringliteral">&quot;%s%s/%s-%s.avpreset&quot;</span>, base[i],</div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;                     i != 1 ? <span class="stringliteral">&quot;&quot;</span> : <span class="stringliteral">&quot;/.avconv&quot;</span>, codec_name, preset_name);</div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;            ret = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(s, filename, AVIO_FLAG_READ, &amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>, NULL);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;        }</div>
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;            snprintf(filename, <span class="keyword">sizeof</span>(filename), <span class="stringliteral">&quot;%s%s/%s.avpreset&quot;</span>, base[i],</div>
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;                     i != 1 ? <span class="stringliteral">&quot;&quot;</span> : <span class="stringliteral">&quot;/.avconv&quot;</span>, preset_name);</div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;            ret = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(s, filename, AVIO_FLAG_READ, &amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>, NULL);</div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;        }</div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;    }</div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;}</div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160; </div>
<div class="line"><a name="l01406"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a03a47e17a0b8a46a12a209c7448b2ac6"> 1406</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a03a47e17a0b8a46a12a209c7448b2ac6">choose_encoder</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *s, <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost)</div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;{</div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;    <span class="keyword">enum</span> AVMediaType type = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_type;</div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;    <span class="keywordtype">char</span> *codec_name = NULL;</div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160; </div>
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;    <span class="keywordflow">if</span> (type == AVMEDIA_TYPE_VIDEO || type == AVMEDIA_TYPE_AUDIO || type == AVMEDIA_TYPE_SUBTITLE) {</div>
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(codec_names, str, codec_name, s, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>);</div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;        <span class="keywordflow">if</span> (!codec_name) {</div>
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_id = av_guess_codec(s-&gt;oformat, NULL, s-&gt;url,</div>
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160;                                                         NULL, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_type);</div>
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a> = avcodec_find_encoder(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_id);</div>
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;            <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>) {</div>
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Automatic encoder selection failed for &quot;</span></div>
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;                       <span class="stringliteral">&quot;output stream #%d:%d. Default encoder for format %s (codec %s) is &quot;</span></div>
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;                       <span class="stringliteral">&quot;probably disabled. Please choose an encoder manually.\n&quot;</span>,</div>
<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>&#160;                       ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>, s-&gt;oformat-&gt;name,</div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;                       avcodec_get_name(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_id));</div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;                <span class="keywordflow">return</span> AVERROR_ENCODER_NOT_FOUND;</div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;            }</div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(codec_name, <span class="stringliteral">&quot;copy&quot;</span>))</div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a> = 1;</div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a> = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a>(codec_name, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_type, 1);</div>
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_id = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;id;</div>
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;        }</div>
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abd0357b7272cdb232e2db73eb458329e">encoding_needed</a> = !ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>;</div>
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;        <span class="comment">/* no encoding supported for other media types */</span></div>
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>     = 1;</div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abd0357b7272cdb232e2db73eb458329e">encoding_needed</a> = 0;</div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;    }</div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160; </div>
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;}</div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160; </div>
<div class="line"><a name="l01441"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a80cef4274f0f47914ca35f6da2252eeb"> 1441</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keyword">enum</span> AVMediaType type, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;{</div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;    AVStream *st = avformat_new_stream(oc, NULL);</div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;    <span class="keywordtype">int</span> idx      = oc-&gt;nb_streams - 1, ret = 0;</div>
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *bsfs = NULL, *time_base = NULL;</div>
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;    <span class="keywordtype">char</span> *next, *codec_tag = NULL;</div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;    <span class="keywordtype">double</span> qscale = -1;</div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160; </div>
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160;    <span class="keywordflow">if</span> (!st) {</div>
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not alloc stream.\n&quot;</span>);</div>
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>&#160;    }</div>
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>&#160; </div>
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;    <span class="keywordflow">if</span> (oc-&gt;nb_streams - 1 &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2a21ce6e0d0e8f25a098ac44013ee919">nb_streamid_map</a>)</div>
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;        st-&gt;id = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a>[oc-&gt;nb_streams - 1];</div>
<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160; </div>
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>);</div>
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;    <span class="keywordflow">if</span> (!(ost = av_mallocz(<span class="keyword">sizeof</span>(*ost))))</div>
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a> - 1] = ost;</div>
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160; </div>
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a> = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1;</div>
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>      = idx;</div>
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>         = st;</div>
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac99140cc5be4b4ed439d5e4c854189fa">forced_kf_ref_pts</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;    st-&gt;codecpar-&gt;codec_type = type;</div>
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160; </div>
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;    ret = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a03a47e17a0b8a46a12a209c7448b2ac6">choose_encoder</a>(o, oc, ost);</div>
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error selecting an encoder for stream &quot;</span></div>
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;               <span class="stringliteral">&quot;%d:%d\n&quot;</span>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>);</div>
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;    }</div>
<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160; </div>
<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a> = avcodec_alloc_context3(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>);</div>
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>) {</div>
<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error allocating the encoding context.\n&quot;</span>);</div>
<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;    }</div>
<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;codec_type = type;</div>
<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160; </div>
<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9f511baf1fef17812bf650c35c828382">ref_par</a> = avcodec_parameters_alloc();</div>
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9f511baf1fef17812bf650c35c828382">ref_par</a>) {</div>
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error allocating the encoding parameters.\n&quot;</span>);</div>
<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160;    }</div>
<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160; </div>
<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>) {</div>
<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160;        AVIOContext *s = NULL;</div>
<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160;        <span class="keywordtype">char</span> *buf = NULL, *arg = NULL, *preset = NULL;</div>
<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160; </div>
<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a>  = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a98c102ceb9bca5531e6d43f951e9afed">filter_codec_opts</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;id, oc, st, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>);</div>
<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160; </div>
<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(presets, str, preset, oc, st);</div>
<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a4aabbeb1e0b98e2211be7f36a3cde2aa">autoscale</a> = 1;</div>
<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(autoscale, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a4aabbeb1e0b98e2211be7f36a3cde2aa">autoscale</a>, oc, st);</div>
<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;        <span class="keywordflow">if</span> (preset &amp;&amp; (!(ret = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa9e1780c2ce777fc9a0d205b5769324b">get_preset_file_2</a>(preset, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;name, &amp;s)))) {</div>
<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;            <span class="keywordflow">do</span>  {</div>
<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160;                buf = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a663c23e27b0412e3d67205757114d16b">get_line</a>(s);</div>
<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160;                <span class="keywordflow">if</span> (!buf[0] || buf[0] == <span class="charliteral">&#39;#&#39;</span>) {</div>
<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;                    av_free(buf);</div>
<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160;                }</div>
<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160;                <span class="keywordflow">if</span> (!(arg = strchr(buf, <span class="charliteral">&#39;=&#39;</span>))) {</div>
<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid line found in the preset file.\n&quot;</span>);</div>
<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160;                }</div>
<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;                *arg++ = 0;</div>
<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;                av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a>, buf, arg, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;                av_free(buf);</div>
<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;            } <span class="keywordflow">while</span> (!s-&gt;eof_reached);</div>
<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;            <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#ad630e12e35075294df64066949aece9b">avio_closep</a>(&amp;s);</div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;        }</div>
<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;        <span class="keywordflow">if</span> (ret) {</div>
<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;            av_log(NULL, AV_LOG_FATAL,</div>
<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;                   <span class="stringliteral">&quot;Preset %s specified for stream %d:%d, but could not be opened.\n&quot;</span>,</div>
<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160;                   preset, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>);</div>
<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;        }</div>
<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a> = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a98c102ceb9bca5531e6d43f951e9afed">filter_codec_opts</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, AV_CODEC_ID_NONE, oc, st, NULL);</div>
<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;    }</div>
<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160; </div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160; </div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a1da3f7560a0c9e44cfd8293a5d3d88ab">bitexact</a>)</div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;flags |= AV_CODEC_FLAG_BITEXACT;</div>
<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160; </div>
<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(time_bases, str, time_base, oc, st);</div>
<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;    <span class="keywordflow">if</span> (time_base) {</div>
<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160;        AVRational q;</div>
<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160;        <span class="keywordflow">if</span> (av_parse_ratio(&amp;q, time_base, INT_MAX, 0, NULL) &lt; 0 ||</div>
<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160;            q.num &lt;= 0 || q.den &lt;= 0) {</div>
<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid time base: %s\n&quot;</span>, time_base);</div>
<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;        }</div>
<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;        st-&gt;time_base = q;</div>
<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;    }</div>
<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160; </div>
<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(enc_time_bases, str, time_base, oc, st);</div>
<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;    <span class="keywordflow">if</span> (time_base) {</div>
<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;        AVRational q;</div>
<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;        <span class="keywordflow">if</span> (av_parse_ratio(&amp;q, time_base, INT_MAX, 0, NULL) &lt; 0 ||</div>
<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;            q.den &lt;= 0) {</div>
<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid time base: %s\n&quot;</span>, time_base);</div>
<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;        }</div>
<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a8fe39b5fa1ad275e6d11dd5affaee68d">enc_timebase</a> = q;</div>
<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;    }</div>
<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160; </div>
<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a6cb813f6df7342f0f37825241a3cd51b">max_frames</a> = INT64_MAX;</div>
<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(max_frames, i64, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a6cb813f6df7342f0f37825241a3cd51b">max_frames</a>, oc, st);</div>
<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;    <span class="keywordflow">for</span> (i = 0; i&lt;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a53594f37751979e91873fe8282e2e103">nb_max_frames</a>; i++) {</div>
<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;        <span class="keywordtype">char</span> *p = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a3517181834318f5959bd05e47c4837ea">max_frames</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">specifier</a>;</div>
<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;        <span class="keywordflow">if</span> (!*p &amp;&amp; type != AVMEDIA_TYPE_VIDEO) {</div>
<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;            av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Applying unspecific -frames to non video streams, maybe you meant -vframes ?\n&quot;</span>);</div>
<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;        }</div>
<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;    }</div>
<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160; </div>
<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab60bee90a33577cbdbb82e9c5fb2cf08">copy_prior_start</a> = -1;</div>
<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(copy_prior_start, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab60bee90a33577cbdbb82e9c5fb2cf08">copy_prior_start</a>, oc ,st);</div>
<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160; </div>
<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(bitstream_filters, str, bsfs, oc, st);</div>
<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;    <span class="keywordflow">if</span> (bsfs &amp;&amp; *bsfs) {</div>
<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;        ret = av_bsf_list_parse_str(bsfs, &amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbf75f011ccbdcad1b3b3e4c3f028b5e">bsf_ctx</a>);</div>
<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error parsing bitstream filter sequence &#39;%s&#39;: %s\n&quot;</span>, bsfs, av_err2str(ret));</div>
<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;            }</div>
<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;        }</div>
<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160; </div>
<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(codec_tags, str, codec_tag, oc, st);</div>
<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;    <span class="keywordflow">if</span> (codec_tag) {</div>
<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;        uint32_t tag = strtol(codec_tag, &amp;next, 0);</div>
<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160;        <span class="keywordflow">if</span> (*next)</div>
<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;            tag = AV_RL32(codec_tag);</div>
<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_tag =</div>
<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;codec_tag = tag;</div>
<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160;    }</div>
<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160; </div>
<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(qscale, dbl, qscale, oc, st);</div>
<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160;    <span class="keywordflow">if</span> (qscale &gt;= 0) {</div>
<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;flags |= AV_CODEC_FLAG_QSCALE;</div>
<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;global_quality = FF_QP2LAMBDA * qscale;</div>
<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;    }</div>
<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160; </div>
<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(disposition, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#add36114220f77c320ff544748163a15d">disposition</a>, oc, st);</div>
<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#add36114220f77c320ff544748163a15d">disposition</a> = av_strdup(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#add36114220f77c320ff544748163a15d">disposition</a>);</div>
<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160; </div>
<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a006aed9d49962d931da10f19a135f2bb">max_muxing_queue_size</a> = 128;</div>
<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(max_muxing_queue_size, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a006aed9d49962d931da10f19a135f2bb">max_muxing_queue_size</a>, oc, st);</div>
<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a006aed9d49962d931da10f19a135f2bb">max_muxing_queue_size</a> *= <span class="keyword">sizeof</span>(AVPacket);</div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160; </div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af18a803d7d7db08a1cdac6b54fc1a58f">muxing_queue_data_size</a> = 0;</div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160; </div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a6e2ea45e90d7df93766f580a39469719">muxing_queue_data_threshold</a> = 50*1024*1024;</div>
<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(muxing_queue_data_threshold, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a6e2ea45e90d7df93766f580a39469719">muxing_queue_data_threshold</a>, oc, st);</div>
<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160; </div>
<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;    <span class="keywordflow">if</span> (oc-&gt;oformat-&gt;flags &amp; AVFMT_GLOBALHEADER)</div>
<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;flags |= AV_CODEC_FLAG_GLOBAL_HEADER;</div>
<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160; </div>
<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;    av_dict_copy(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad55eb675077dc7b468f15f02a03ded5a">sws_dict</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#ad49cc9faed6022da9329fcd220c8467b">sws_dict</a>, 0);</div>
<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160; </div>
<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;    av_dict_copy(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a0c7606649d3fd916e9eaf19e12fd92c7">swr_opts</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad5bf1f2e0e3da5827b689f94e05937d">swr_opts</a>, 0);</div>
<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a> &amp;&amp; av_get_exact_bits_per_sample(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;id) == 24)</div>
<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;        av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a0c7606649d3fd916e9eaf19e12fd92c7">swr_opts</a>, <span class="stringliteral">&quot;output_sample_bits&quot;</span>, <span class="stringliteral">&quot;24&quot;</span>, 0);</div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160; </div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;    av_dict_copy(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a84762af19c6801936fd49d53170a3682">resample_opts</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aee5e1f251f3d88c41a505d0655b410d9">resample_opts</a>, 0);</div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160; </div>
<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a> = source_index;</div>
<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;    <span class="keywordflow">if</span> (source_index &gt;= 0) {</div>
<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abc0329cada4c47662e2777d392a38efb">sync_ist</a> = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[source_index];</div>
<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;        <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[source_index]-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ac39249a26eeec2ed084fcc433ec9825e">discard</a> = 0;</div>
<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;        <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[source_index]-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;discard = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[source_index]-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a>;</div>
<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;    }</div>
<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a1fd50164583dbdc664706be005120c1d">last_mux_dts</a> = AV_NOPTS_VALUE;</div>
<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160; </div>
<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9c6665bb019599fc7aeae17c1dadb814">muxing_queue</a> = av_fifo_alloc(8 * <span class="keyword">sizeof</span>(AVPacket));</div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9c6665bb019599fc7aeae17c1dadb814">muxing_queue</a>)</div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160; </div>
<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;}</div>
<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160; </div>
<div class="line"><a name="l01627"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a9324d262380638a863ba421a6905e89b"> 1627</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9324d262380638a863ba421a6905e89b">parse_matrix_coeffs</a>(uint16_t *dest, <span class="keyword">const</span> <span class="keywordtype">char</span> *str)</div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;{</div>
<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *p = str;</div>
<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;    <span class="keywordflow">for</span> (i = 0;; i++) {</div>
<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;        dest[i] = atoi(p);</div>
<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;        <span class="keywordflow">if</span> (i == 63)</div>
<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;        p = strchr(p, <span class="charliteral">&#39;,&#39;</span>);</div>
<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;        <span class="keywordflow">if</span> (!p) {</div>
<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Syntax error in matrix \&quot;%s\&quot; at coeff %d\n&quot;</span>, str, i);</div>
<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;        }</div>
<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;        p++;</div>
<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;    }</div>
<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;}</div>
<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160; </div>
<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;<span class="comment">/* read file contents into a string */</span></div>
<div class="line"><a name="l01645"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a2b7c43b1c753d5dce457b81d54fdad32"> 1645</a></span>&#160;uint8_t *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b7c43b1c753d5dce457b81d54fdad32">fftools_read_file</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;{</div>
<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;    AVIOContext *pb      = NULL;</div>
<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;    AVIOContext *dyn_buf = NULL;</div>
<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;    <span class="keywordtype">int</span> ret = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#aac82a8482c95977621b733460cfdea39">avio_open</a>(&amp;pb, filename, AVIO_FLAG_READ);</div>
<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;    uint8_t buf[1024], *str;</div>
<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160; </div>
<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error opening file %s.\n&quot;</span>, filename);</div>
<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;    }</div>
<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160; </div>
<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160;    ret = avio_open_dyn_buf(&amp;dyn_buf);</div>
<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160;        <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#ad630e12e35075294df64066949aece9b">avio_closep</a>(&amp;pb);</div>
<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;    }</div>
<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;    <span class="keywordflow">while</span> ((ret = avio_read(pb, buf, <span class="keyword">sizeof</span>(buf))) &gt; 0)</div>
<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;        avio_write(dyn_buf, buf, ret);</div>
<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;    avio_w8(dyn_buf, 0);</div>
<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;    <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#ad630e12e35075294df64066949aece9b">avio_closep</a>(&amp;pb);</div>
<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160; </div>
<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;    ret = avio_close_dyn_buf(dyn_buf, &amp;str);</div>
<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;    <span class="keywordflow">return</span> str;</div>
<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;}</div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160; </div>
<div class="line"><a name="l01673"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a55e636661397aed6950fd1f4667e3439"> 1673</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55e636661397aed6950fd1f4667e3439">get_ost_filters</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc,</div>
<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;                             <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost)</div>
<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;{</div>
<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;    AVStream *st = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>;</div>
<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160; </div>
<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a> &amp;&amp; ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>) {</div>
<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Both -filter and -filter_script set for &quot;</span></div>
<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;               <span class="stringliteral">&quot;output stream #%d:%d.\n&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a>, st-&gt;index);</div>
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;    }</div>
<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160; </div>
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>)</div>
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b7c43b1c753d5dce457b81d54fdad32">fftools_read_file</a>(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>);</div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>)</div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;        <span class="keywordflow">return</span> av_strdup(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>);</div>
<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160; </div>
<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;    <span class="keywordflow">return</span> av_strdup(st-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_VIDEO ?</div>
<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160;                     <span class="stringliteral">&quot;null&quot;</span> : <span class="stringliteral">&quot;anull&quot;</span>);</div>
<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;}</div>
<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160; </div>
<div class="line"><a name="l01693"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a7cddc701ff06bdb72d4fc4e9d58fef18"> 1693</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7cddc701ff06bdb72d4fc4e9d58fef18">check_streamcopy_filters</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc,</div>
<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;                                     <span class="keyword">const</span> <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost, <span class="keyword">enum</span> AVMediaType type)</div>
<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;{</div>
<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a> || ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>) {</div>
<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;        av_log(NULL, AV_LOG_ERROR,</div>
<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;               <span class="stringliteral">&quot;%s &#39;%s&#39; was defined for %s output stream %d:%d but codec copy was selected.\n&quot;</span></div>
<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160;               <span class="stringliteral">&quot;Filtering and streamcopy cannot be used together.\n&quot;</span>,</div>
<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;               ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> ? <span class="stringliteral">&quot;Filtergraph&quot;</span> : <span class="stringliteral">&quot;Filtergraph script&quot;</span>,</div>
<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;               ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> ? ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> : ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>,</div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;               av_get_media_type_string(type), ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>);</div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;    }</div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;}</div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160; </div>
<div class="line"><a name="l01707"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#adc3928a88e1ab2eacb04c5fa1b6bfe00"> 1707</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adc3928a88e1ab2eacb04c5fa1b6bfe00">new_video_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;{</div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;    AVStream *st;</div>
<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;    AVCodecContext *video_enc;</div>
<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;    <span class="keywordtype">char</span> *frame_rate = NULL, *max_frame_rate = NULL, *frame_aspect_ratio = NULL;</div>
<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160; </div>
<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;    ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_VIDEO, source_index);</div>
<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;    st  = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>;</div>
<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;    video_enc = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>;</div>
<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160; </div>
<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_rates, str, frame_rate, oc, st);</div>
<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160;    <span class="keywordflow">if</span> (frame_rate &amp;&amp; av_parse_video_rate(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab13acc03a389653d882f221141f12ae3">frame_rate</a>, frame_rate) &lt; 0) {</div>
<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid framerate value: %s\n&quot;</span>, frame_rate);</div>
<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;    }</div>
<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>&#160; </div>
<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(max_frame_rates, str, max_frame_rate, oc, st);</div>
<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>&#160;    <span class="keywordflow">if</span> (max_frame_rate &amp;&amp; av_parse_video_rate(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a89138b534350318574ca78cdb1c4ab4a">max_frame_rate</a>, max_frame_rate) &lt; 0) {</div>
<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid maximum framerate value: %s\n&quot;</span>, max_frame_rate);</div>
<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160;    }</div>
<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160; </div>
<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160;    <span class="keywordflow">if</span> (frame_rate &amp;&amp; max_frame_rate) {</div>
<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Only one of -fpsmax and -r can be set for a stream.\n&quot;</span>);</div>
<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160;    }</div>
<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160; </div>
<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;    <span class="keywordflow">if</span> ((frame_rate || max_frame_rate) &amp;&amp;</div>
<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> == <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ad997d298e58562365e7011c3d2fdd811">VSYNC_PASSTHROUGH</a>)</div>
<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Using -vsync 0 and -r/-fpsmax can produce invalid output files\n&quot;</span>);</div>
<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160; </div>
<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_aspect_ratios, str, frame_aspect_ratio, oc, st);</div>
<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;    <span class="keywordflow">if</span> (frame_aspect_ratio) {</div>
<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;        AVRational q;</div>
<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;        <span class="keywordflow">if</span> (av_parse_ratio(&amp;q, frame_aspect_ratio, 255, 0, NULL) &lt; 0 ||</div>
<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;            q.num &lt;= 0 || q.den &lt;= 0) {</div>
<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid aspect ratio: %s\n&quot;</span>, frame_aspect_ratio);</div>
<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;        }</div>
<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a363d95a998c8dffa3a493ccf39f39309">frame_aspect_ratio</a> = q;</div>
<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160;    }</div>
<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160; </div>
<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(filter_scripts, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>, oc, st);</div>
<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(filters,        str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>,        oc, st);</div>
<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160; </div>
<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *p = NULL;</div>
<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;        <span class="keywordtype">char</span> *frame_size = NULL;</div>
<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160;        <span class="keywordtype">char</span> *frame_pix_fmt = NULL;</div>
<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;        <span class="keywordtype">char</span> *intra_matrix = NULL, *inter_matrix = NULL;</div>
<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;        <span class="keywordtype">char</span> *chroma_intra_matrix = NULL;</div>
<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>&#160;        <span class="keywordtype">int</span> do_pass = 0;</div>
<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160; </div>
<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_sizes, str, frame_size, oc, st);</div>
<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160;        <span class="keywordflow">if</span> (frame_size &amp;&amp; av_parse_video_size(&amp;video_enc-&gt;width, &amp;video_enc-&gt;height, frame_size) &lt; 0) {</div>
<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid frame size: %s.\n&quot;</span>, frame_size);</div>
<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160;        }</div>
<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160; </div>
<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;        video_enc-&gt;bits_per_raw_sample = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0d50908e34c08d4fb8de82f0d2ab1281">frame_bits_per_raw_sample</a>;</div>
<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_pix_fmts, str, frame_pix_fmt, oc, st);</div>
<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;        <span class="keywordflow">if</span> (frame_pix_fmt &amp;&amp; *frame_pix_fmt == <span class="charliteral">&#39;+&#39;</span>) {</div>
<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af0ca53e6e06775f61dcc13af0a11ab82">keep_pix_fmt</a> = 1;</div>
<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;            <span class="keywordflow">if</span> (!*++frame_pix_fmt)</div>
<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;                frame_pix_fmt = NULL;</div>
<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;        }</div>
<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;        <span class="keywordflow">if</span> (frame_pix_fmt &amp;&amp; (video_enc-&gt;pix_fmt = av_get_pix_fmt(frame_pix_fmt)) == AV_PIX_FMT_NONE) {</div>
<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unknown pixel format requested: %s.\n&quot;</span>, frame_pix_fmt);</div>
<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;        }</div>
<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;        st-&gt;sample_aspect_ratio = video_enc-&gt;sample_aspect_ratio;</div>
<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160; </div>
<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af848648dccdf2e8b2bfd969886657ed7">intra_only</a>)</div>
<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;            video_enc-&gt;gop_size = 0;</div>
<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(intra_matrices, str, intra_matrix, oc, st);</div>
<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;        <span class="keywordflow">if</span> (intra_matrix) {</div>
<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;            <span class="keywordflow">if</span> (!(video_enc-&gt;intra_matrix = av_mallocz(<span class="keyword">sizeof</span>(*video_enc-&gt;intra_matrix) * 64))) {</div>
<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not allocate memory for intra matrix.\n&quot;</span>);</div>
<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>&#160;            }</div>
<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9324d262380638a863ba421a6905e89b">parse_matrix_coeffs</a>(video_enc-&gt;intra_matrix, intra_matrix);</div>
<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>&#160;        }</div>
<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(chroma_intra_matrices, str, chroma_intra_matrix, oc, st);</div>
<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>&#160;        <span class="keywordflow">if</span> (chroma_intra_matrix) {</div>
<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>&#160;            uint16_t *p = av_mallocz(<span class="keyword">sizeof</span>(*video_enc-&gt;chroma_intra_matrix) * 64);</div>
<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160;            <span class="keywordflow">if</span> (!p) {</div>
<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not allocate memory for intra matrix.\n&quot;</span>);</div>
<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160;            }</div>
<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;            video_enc-&gt;chroma_intra_matrix = p;</div>
<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9324d262380638a863ba421a6905e89b">parse_matrix_coeffs</a>(p, chroma_intra_matrix);</div>
<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;        }</div>
<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(inter_matrices, str, inter_matrix, oc, st);</div>
<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;        <span class="keywordflow">if</span> (inter_matrix) {</div>
<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;            <span class="keywordflow">if</span> (!(video_enc-&gt;inter_matrix = av_mallocz(<span class="keyword">sizeof</span>(*video_enc-&gt;inter_matrix) * 64))) {</div>
<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not allocate memory for inter matrix.\n&quot;</span>);</div>
<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160;            }</div>
<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9324d262380638a863ba421a6905e89b">parse_matrix_coeffs</a>(video_enc-&gt;inter_matrix, inter_matrix);</div>
<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;        }</div>
<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160; </div>
<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(rc_overrides, str, p, oc, st);</div>
<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;        <span class="keywordflow">for</span> (i = 0; p; i++) {</div>
<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;            <span class="keywordtype">int</span> start, end, q;</div>
<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>&#160;            <span class="keywordtype">int</span> e = sscanf(p, <span class="stringliteral">&quot;%d,%d,%d&quot;</span>, &amp;start, &amp;end, &amp;q);</div>
<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160;            <span class="keywordflow">if</span> (e != 3) {</div>
<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;error parsing rc_override\n&quot;</span>);</div>
<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>&#160;            }</div>
<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>&#160;            video_enc-&gt;rc_override =</div>
<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>&#160;                av_realloc_array(video_enc-&gt;rc_override,</div>
<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;                                 i + 1, <span class="keyword">sizeof</span>(RcOverride));</div>
<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160;            <span class="keywordflow">if</span> (!video_enc-&gt;rc_override) {</div>
<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not (re)allocate memory for rc_override.\n&quot;</span>);</div>
<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>&#160;            }</div>
<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>&#160;            video_enc-&gt;rc_override[i].start_frame = start;</div>
<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>&#160;            video_enc-&gt;rc_override[i].end_frame   = end;</div>
<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160;            <span class="keywordflow">if</span> (q &gt; 0) {</div>
<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160;                video_enc-&gt;rc_override[i].qscale         = q;</div>
<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;                video_enc-&gt;rc_override[i].quality_factor = 1.0;</div>
<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160;            }</div>
<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160;            <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160;                video_enc-&gt;rc_override[i].qscale         = 0;</div>
<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>&#160;                video_enc-&gt;rc_override[i].quality_factor = -q/100.0;</div>
<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>&#160;            }</div>
<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160;            p = strchr(p, <span class="charliteral">&#39;/&#39;</span>);</div>
<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;            <span class="keywordflow">if</span> (p) p++;</div>
<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;        }</div>
<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;        video_enc-&gt;rc_override_count = i;</div>
<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160; </div>
<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae1a832e0aee85dbc82c89e7f91b94619">do_psnr</a>)</div>
<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160;            video_enc-&gt;flags|= AV_CODEC_FLAG_PSNR;</div>
<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160; </div>
<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;        <span class="comment">/* two pass mode */</span></div>
<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(pass, i, do_pass, oc, st);</div>
<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160;        <span class="keywordflow">if</span> (do_pass) {</div>
<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;            <span class="keywordflow">if</span> (do_pass &amp; 1) {</div>
<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;                video_enc-&gt;flags |= AV_CODEC_FLAG_PASS1;</div>
<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;                av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a>, <span class="stringliteral">&quot;flags&quot;</span>, <span class="stringliteral">&quot;+pass1&quot;</span>, AV_DICT_APPEND);</div>
<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;            }</div>
<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;            <span class="keywordflow">if</span> (do_pass &amp; 2) {</div>
<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;                video_enc-&gt;flags |= AV_CODEC_FLAG_PASS2;</div>
<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;                av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a>, <span class="stringliteral">&quot;flags&quot;</span>, <span class="stringliteral">&quot;+pass2&quot;</span>, AV_DICT_APPEND);</div>
<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;            }</div>
<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;        }</div>
<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160; </div>
<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(passlogfiles, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a>, oc, st);</div>
<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;        <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a> &amp;&amp;</div>
<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;            !(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a> = av_strdup(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a>)))</div>
<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160; </div>
<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;        <span class="keywordflow">if</span> (do_pass) {</div>
<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160;            <span class="keywordtype">char</span> logfilename[1024];</div>
<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160;            FILE *f;</div>
<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160; </div>
<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160;            snprintf(logfilename, <span class="keyword">sizeof</span>(logfilename), <span class="stringliteral">&quot;%s-%d.log&quot;</span>,</div>
<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>&#160;                     ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a> ? ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">logfile_prefix</a> :</div>
<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>&#160;                                           <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4dd32a1942a804edb22f2e016406db41">DEFAULT_PASS_LOGFILENAME_PREFIX</a>,</div>
<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>&#160;                     i);</div>
<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>&#160;            <span class="keywordflow">if</span> (!strcmp(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;name, <span class="stringliteral">&quot;libx264&quot;</span>)) {</div>
<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160;                av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">encoder_opts</a>, <span class="stringliteral">&quot;stats&quot;</span>, logfilename, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160;                <span class="keywordflow">if</span> (video_enc-&gt;flags &amp; AV_CODEC_FLAG_PASS2) {</div>
<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>&#160;                    <span class="keywordtype">char</span>  *logbuffer = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b7c43b1c753d5dce457b81d54fdad32">fftools_read_file</a>(logfilename);</div>
<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>&#160; </div>
<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>&#160;                    <span class="keywordflow">if</span> (!logbuffer) {</div>
<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>&#160;                        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error reading log file &#39;%s&#39; for pass-2 encoding\n&quot;</span>,</div>
<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>&#160;                               logfilename);</div>
<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>&#160;                    }</div>
<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>&#160;                    video_enc-&gt;stats_in = logbuffer;</div>
<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>&#160;                }</div>
<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>&#160;                <span class="keywordflow">if</span> (video_enc-&gt;flags &amp; AV_CODEC_FLAG_PASS1) {</div>
<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>&#160;                    f = av_fopen_utf8(logfilename, <span class="stringliteral">&quot;wb&quot;</span>);</div>
<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>&#160;                    <span class="keywordflow">if</span> (!f) {</div>
<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>&#160;                        av_log(NULL, AV_LOG_FATAL,</div>
<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>&#160;                               <span class="stringliteral">&quot;Cannot write log file &#39;%s&#39; for pass-1 encoding: %s\n&quot;</span>,</div>
<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>&#160;                               logfilename, strerror(errno));</div>
<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>&#160;                    }</div>
<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>&#160;                    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af1ef91b1ddb70244dd37415f774e025b">logfile</a> = f;</div>
<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>&#160;                }</div>
<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>&#160;            }</div>
<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>&#160;        }</div>
<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>&#160; </div>
<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(forced_key_frames, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa2465b9c30830c607e3af293c44317ad">forced_keyframes</a>, oc, st);</div>
<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160;        <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa2465b9c30830c607e3af293c44317ad">forced_keyframes</a>)</div>
<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160;            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa2465b9c30830c607e3af293c44317ad">forced_keyframes</a> = av_strdup(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa2465b9c30830c607e3af293c44317ad">forced_keyframes</a>);</div>
<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>&#160; </div>
<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(force_fps, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a51858c10bfe635eb784e3651e6d494f8">force_fps</a>, oc, st);</div>
<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>&#160; </div>
<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a236bf5647b00c43936bda537db39ec26">top_field_first</a> = -1;</div>
<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(top_field_first, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a236bf5647b00c43936bda537db39ec26">top_field_first</a>, oc, st);</div>
<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>&#160; </div>
<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>&#160; </div>
<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">avfilter</a> = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55e636661397aed6950fd1f4667e3439">get_ost_filters</a>(o, oc, ost);</div>
<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>&#160;        <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">avfilter</a>)</div>
<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(copy_initial_nonkeyframes, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a1c371db7f52c96799a042c70ed85ce2a">copy_initial_nonkeyframes</a>, oc ,st);</div>
<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>&#160;    }</div>
<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>&#160; </div>
<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>)</div>
<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7cddc701ff06bdb72d4fc4e9d58fef18">check_streamcopy_filters</a>(o, oc, ost, AVMEDIA_TYPE_VIDEO);</div>
<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>&#160; </div>
<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>&#160;}</div>
<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>&#160; </div>
<div class="line"><a name="l01918"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a15a211f78437d8b76343ffb6a5ed7691"> 1918</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15a211f78437d8b76343ffb6a5ed7691">new_audio_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>&#160;{</div>
<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>&#160;    <span class="keywordtype">int</span> n;</div>
<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>&#160;    AVStream *st;</div>
<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>&#160;    AVCodecContext *audio_enc;</div>
<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>&#160; </div>
<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>&#160;    ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_AUDIO, source_index);</div>
<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>&#160;    st  = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>;</div>
<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>&#160; </div>
<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>&#160;    audio_enc = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>;</div>
<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>&#160;    audio_enc-&gt;codec_type = AVMEDIA_TYPE_AUDIO;</div>
<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>&#160; </div>
<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(filter_scripts, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>, oc, st);</div>
<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(filters,        str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a>,        oc, st);</div>
<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>&#160; </div>
<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>&#160;        <span class="keywordtype">char</span> *sample_fmt = NULL;</div>
<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>&#160; </div>
<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(audio_channels, i, audio_enc-&gt;channels, oc, st);</div>
<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>&#160; </div>
<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(sample_fmts, str, sample_fmt, oc, st);</div>
<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>&#160;        <span class="keywordflow">if</span> (sample_fmt &amp;&amp;</div>
<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>&#160;            (audio_enc-&gt;sample_fmt = av_get_sample_fmt(sample_fmt)) == AV_SAMPLE_FMT_NONE) {</div>
<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid sample format &#39;%s&#39;\n&quot;</span>, sample_fmt);</div>
<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>&#160;        }</div>
<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>&#160; </div>
<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(audio_sample_rate, i, audio_enc-&gt;sample_rate, oc, st);</div>
<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>&#160; </div>
<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(apad, str, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a76d4d92835e9dd3d0619e79e4fb762c6">apad</a>, oc, st);</div>
<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a76d4d92835e9dd3d0619e79e4fb762c6">apad</a> = av_strdup(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a76d4d92835e9dd3d0619e79e4fb762c6">apad</a>);</div>
<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>&#160; </div>
<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">avfilter</a> = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55e636661397aed6950fd1f4667e3439">get_ost_filters</a>(o, oc, ost);</div>
<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>&#160;        <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">avfilter</a>)</div>
<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>&#160; </div>
<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>&#160;        <span class="comment">/* check for channel mapping for this audio stream */</span></div>
<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>&#160;        <span class="keywordflow">for</span> (n = 0; n &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2e67c5ed2e0cc9b5cd4a5ff9895d7fc1">nb_audio_channel_maps</a>; n++) {</div>
<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>&#160;            <a class="code" href="../../d6/d2c/struct_audio_channel_map.html">AudioChannelMap</a> *map = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#afbfd63b5be2c974c0a2dbf1911ab678b">audio_channel_maps</a>[n];</div>
<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>&#160;            <span class="keywordflow">if</span> ((map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a>   == -1 || ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a> == map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">ofile_idx</a>) &amp;&amp;</div>
<div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>&#160;                (map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a> == -1 || ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;index  == map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">ostream_idx</a>)) {</div>
<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>&#160;                <a class="code" href="../../d3/d6e/struct_input_stream.html">InputStream</a> *ist;</div>
<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>&#160; </div>
<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>&#160;                <span class="keywordflow">if</span> (map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a> == -1) {</div>
<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>&#160;                    ist = NULL;</div>
<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a> &lt; 0) {</div>
<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Cannot determine input stream for channel mapping %d.%d\n&quot;</span>,</div>
<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>&#160;                           ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;index);</div>
<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>&#160;                    ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a>];</div>
<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>&#160;                }</div>
<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>&#160; </div>
<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>&#160;                <span class="keywordflow">if</span> (!ist || (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ad47d834630eee2dca258aa449fb1df47">file_index</a> == map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">file_idx</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;index == map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">stream_idx</a>)) {</div>
<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>&#160;                    <span class="keywordflow">if</span> (av_reallocp_array(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a343c63e0cf4f0aca4fb4727b2e6fa829">audio_channels_map</a>,</div>
<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>&#160;                                          ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a50bc46d7c7636e2abbfe066872d0c1d0">audio_channels_mapped</a> + 1,</div>
<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>&#160;                                          <span class="keyword">sizeof</span>(*ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a343c63e0cf4f0aca4fb4727b2e6fa829">audio_channels_map</a>)</div>
<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>&#160;                                          ) &lt; 0 )</div>
<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>&#160; </div>
<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160;                    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a343c63e0cf4f0aca4fb4727b2e6fa829">audio_channels_map</a>[ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a50bc46d7c7636e2abbfe066872d0c1d0">audio_channels_mapped</a>++] = map-&gt;<a class="code" href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">channel_idx</a>;</div>
<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160;                }</div>
<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;            }</div>
<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160;        }</div>
<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160;    }</div>
<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160; </div>
<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>)</div>
<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7cddc701ff06bdb72d4fc4e9d58fef18">check_streamcopy_filters</a>(o, oc, ost, AVMEDIA_TYPE_AUDIO);</div>
<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160; </div>
<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>&#160;}</div>
<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>&#160; </div>
<div class="line"><a name="l01991"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ab1202336863f378d4602072dfa5efdf5"> 1991</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1202336863f378d4602072dfa5efdf5">new_data_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>&#160;{</div>
<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>&#160; </div>
<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>&#160;    ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_DATA, source_index);</div>
<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Data stream encoding not supported yet (only streamcopy)\n&quot;</span>);</div>
<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>&#160;    }</div>
<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>&#160; </div>
<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>&#160;}</div>
<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>&#160; </div>
<div class="line"><a name="l02004"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ad63f18efd0a1c58dfecf770f75868198"> 2004</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad63f18efd0a1c58dfecf770f75868198">new_unknown_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>&#160;{</div>
<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>&#160; </div>
<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>&#160;    ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_UNKNOWN, source_index);</div>
<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unknown stream encoding not supported yet (only streamcopy)\n&quot;</span>);</div>
<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>&#160;    }</div>
<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>&#160; </div>
<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>&#160;}</div>
<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>&#160; </div>
<div class="line"><a name="l02017"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a0c3773fd5bc3734795991b7a8eda2565"> 2017</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0c3773fd5bc3734795991b7a8eda2565">new_attachment_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160;{</div>
<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_ATTACHMENT, source_index);</div>
<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a> = 1;</div>
<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2cb215b02eb510c4b19947063a5d5bd8">finished</a>    = 1;</div>
<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;}</div>
<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160; </div>
<div class="line"><a name="l02025"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a226ddaa939f9e92fefe8590b96711b29"> 2025</a></span>&#160;<a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a226ddaa939f9e92fefe8590b96711b29">new_subtitle_stream</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, AVFormatContext *oc, <span class="keywordtype">int</span> source_index)</div>
<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>&#160;{</div>
<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>&#160;    AVStream *st;</div>
<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>&#160;    AVCodecContext *subtitle_enc;</div>
<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>&#160; </div>
<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>&#160;    ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a>(o, oc, AVMEDIA_TYPE_SUBTITLE, source_index);</div>
<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>&#160;    st  = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>;</div>
<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>&#160;    subtitle_enc = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>;</div>
<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>&#160; </div>
<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>&#160;    subtitle_enc-&gt;codec_type = AVMEDIA_TYPE_SUBTITLE;</div>
<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>&#160; </div>
<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(copy_initial_nonkeyframes, i, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a1c371db7f52c96799a042c70ed85ce2a">copy_initial_nonkeyframes</a>, oc, st);</div>
<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>&#160; </div>
<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>&#160;    <span class="keywordflow">if</span> (!ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>&#160;        <span class="keywordtype">char</span> *frame_size = NULL;</div>
<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>&#160; </div>
<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a>(frame_sizes, str, frame_size, oc, st);</div>
<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>&#160;        <span class="keywordflow">if</span> (frame_size &amp;&amp; av_parse_video_size(&amp;subtitle_enc-&gt;width, &amp;subtitle_enc-&gt;height, frame_size) &lt; 0) {</div>
<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid frame size: %s.\n&quot;</span>, frame_size);</div>
<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>&#160;        }</div>
<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>&#160;    }</div>
<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>&#160; </div>
<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>&#160;    <span class="keywordflow">return</span> ost;</div>
<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>&#160;}</div>
<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>&#160; </div>
<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>&#160;<span class="comment">/* arg format is &quot;output-stream-index:streamid-value&quot;. */</span></div>
<div class="line"><a name="l02053"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a1969322d3a144cc144a0a92f88e8add1"> 2053</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1969322d3a144cc144a0a92f88e8add1">opt_streamid</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>&#160;{</div>
<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>&#160;    <span class="keywordtype">int</span> idx;</div>
<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>&#160;    <span class="keywordtype">char</span> *p;</div>
<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>&#160;    <span class="keywordtype">char</span> idx_str[16];</div>
<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>&#160; </div>
<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>&#160;    av_strlcpy(idx_str, arg, <span class="keyword">sizeof</span>(idx_str));</div>
<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>&#160;    p = strchr(idx_str, <span class="charliteral">&#39;:&#39;</span>);</div>
<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>&#160;    <span class="keywordflow">if</span> (!p) {</div>
<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>&#160;        av_log(NULL, AV_LOG_FATAL,</div>
<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>&#160;               <span class="stringliteral">&quot;Invalid value &#39;%s&#39; for option &#39;%s&#39;, required syntax is &#39;index:value&#39;\n&quot;</span>,</div>
<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>&#160;               arg, opt);</div>
<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>&#160;    }</div>
<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>&#160;    *p++ = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>&#160;    idx = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#aee611299e84dab23d614366f993e96ae">parse_number_or_die</a>(opt, idx_str, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a55bdf11c33fc097533cde94b0f64024b">OPT_INT</a>, 0, <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a4a1e12ec49840b798c6413a8f6c947a9">MAX_STREAMS</a>-1);</div>
<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a> = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a5a234190bf25a47320f57fd5ba9cea6a">grow_array</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a>, <span class="keyword">sizeof</span>(*o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a>), &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a2a21ce6e0d0e8f25a098ac44013ee919">nb_streamid_map</a>, idx+1);</div>
<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>&#160;    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">streamid_map</a>[idx] = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#aee611299e84dab23d614366f993e96ae">parse_number_or_die</a>(opt, p, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a55bdf11c33fc097533cde94b0f64024b">OPT_INT</a>, 0, INT_MAX);</div>
<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>&#160;}</div>
<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>&#160; </div>
<div class="line"><a name="l02075"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a15ce1619315986c72f387e9b41a0ff10"> 2075</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15ce1619315986c72f387e9b41a0ff10">copy_chapters</a>(<a class="code" href="../../d8/d99/struct_input_file.html">InputFile</a> *ifile, <a class="code" href="../../de/df2/struct_output_file.html">OutputFile</a> *ofile, <span class="keywordtype">int</span> copy_metadata)</div>
<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>&#160;{</div>
<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>&#160;    AVFormatContext *is = ifile-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>;</div>
<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>&#160;    AVFormatContext *os = ofile-&gt;<a class="code" href="../../de/df2/struct_output_file.html#a6bfbcb8e4d6564ae0c488d58c0fb0d5f">ctx</a>;</div>
<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>&#160;    AVChapter **tmp;</div>
<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>&#160; </div>
<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>&#160;    tmp = av_realloc_f(os-&gt;chapters, is-&gt;nb_chapters + os-&gt;nb_chapters, <span class="keyword">sizeof</span>(*os-&gt;chapters));</div>
<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>&#160;    <span class="keywordflow">if</span> (!tmp)</div>
<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>&#160;    os-&gt;chapters = tmp;</div>
<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>&#160; </div>
<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; is-&gt;nb_chapters; i++) {</div>
<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>&#160;        AVChapter *in_ch = is-&gt;chapters[i], *out_ch;</div>
<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>&#160;        int64_t start_time = (ofile-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aa4fee66db612c26276b5de30d834d5e0">start_time</a> == AV_NOPTS_VALUE) ? 0 : ofile-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aa4fee66db612c26276b5de30d834d5e0">start_time</a>;</div>
<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>&#160;        int64_t ts_off   = av_rescale_q(start_time - ifile-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a098fa89f90be39e95d5e42041e8cebfb">ts_offset</a>,</div>
<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>&#160;                                       AV_TIME_BASE_Q, in_ch-&gt;time_base);</div>
<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>&#160;        int64_t rt       = (ofile-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ad160ce6520aad386bead7eb45f6f55a0">recording_time</a> == INT64_MAX) ? INT64_MAX :</div>
<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>&#160;                           av_rescale_q(ofile-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ad160ce6520aad386bead7eb45f6f55a0">recording_time</a>, AV_TIME_BASE_Q, in_ch-&gt;time_base);</div>
<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>&#160; </div>
<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>&#160; </div>
<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>&#160;        <span class="keywordflow">if</span> (in_ch-&gt;end &lt; ts_off)</div>
<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>&#160;        <span class="keywordflow">if</span> (rt != INT64_MAX &amp;&amp; in_ch-&gt;start &gt; rt + ts_off)</div>
<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>&#160; </div>
<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>&#160;        out_ch = av_mallocz(<span class="keyword">sizeof</span>(AVChapter));</div>
<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>&#160;        <span class="keywordflow">if</span> (!out_ch)</div>
<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>&#160;            <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>&#160; </div>
<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>&#160;        out_ch-&gt;id        = in_ch-&gt;id;</div>
<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>&#160;        out_ch-&gt;time_base = in_ch-&gt;time_base;</div>
<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>&#160;        out_ch-&gt;start     = FFMAX(0,  in_ch-&gt;start - ts_off);</div>
<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>&#160;        out_ch-&gt;end       = FFMIN(rt, in_ch-&gt;end   - ts_off);</div>
<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>&#160; </div>
<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>&#160;        <span class="keywordflow">if</span> (copy_metadata)</div>
<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>&#160;            av_dict_copy(&amp;out_ch-&gt;metadata, in_ch-&gt;metadata, 0);</div>
<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>&#160; </div>
<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>&#160;        os-&gt;chapters[os-&gt;nb_chapters++] = out_ch;</div>
<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>&#160;    }</div>
<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>&#160;}</div>
<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>&#160; </div>
<div class="line"><a name="l02118"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#aab8ea01d3694d9b0e70b09a5f1f386e4"> 2118</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aab8ea01d3694d9b0e70b09a5f1f386e4">init_output_filter</a>(<a class="code" href="../../d0/d0f/struct_output_filter.html">OutputFilter</a> *ofilter, <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o,</div>
<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>&#160;                               AVFormatContext *oc)</div>
<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>&#160;{</div>
<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>&#160; </div>
<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>&#160;    <span class="keywordflow">switch</span> (ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aed4c46a5df26ff71f3f718a0056af294">type</a>) {</div>
<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>&#160;    <span class="keywordflow">case</span> AVMEDIA_TYPE_VIDEO: ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adc3928a88e1ab2eacb04c5fa1b6bfe00">new_video_stream</a>(o, oc, -1); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>&#160;    <span class="keywordflow">case</span> AVMEDIA_TYPE_AUDIO: ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15a211f78437d8b76343ffb6a5ed7691">new_audio_stream</a>(o, oc, -1); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Only video and audio filters are supported &quot;</span></div>
<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>&#160;               <span class="stringliteral">&quot;currently.\n&quot;</span>);</div>
<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>&#160;    }</div>
<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>&#160; </div>
<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a> = -1;</div>
<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>&#160;    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad8926e7de923b3eeabd66770caacfe1e">filter</a>       = ofilter;</div>
<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>&#160; </div>
<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>&#160;    ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a2d283eee3e140f822b5eb381890ba035">ost</a>      = ost;</div>
<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>&#160;    ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aeba350050d2035d755254154e6551c49">format</a>   = -1;</div>
<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>&#160; </div>
<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>) {</div>
<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Streamcopy requested for output stream %d:%d, &quot;</span></div>
<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>&#160;               <span class="stringliteral">&quot;which is fed from a complex filtergraph. Filtering and streamcopy &quot;</span></div>
<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>&#160;               <span class="stringliteral">&quot;cannot be used together.\n&quot;</span>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>);</div>
<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>&#160;    }</div>
<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>&#160; </div>
<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>&#160;    <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">avfilter</a> &amp;&amp; (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> || ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>)) {</div>
<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *opt = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> ? <span class="stringliteral">&quot;-vf/-af/-filter&quot;</span> : <span class="stringliteral">&quot;-filter_script&quot;</span>;</div>
<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>&#160;        av_log(NULL, AV_LOG_ERROR,</div>
<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>&#160;               <span class="stringliteral">&quot;%s &#39;%s&#39; was specified through the %s option &quot;</span></div>
<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>&#160;               <span class="stringliteral">&quot;for output stream %d:%d, which is fed from a complex filtergraph.\n&quot;</span></div>
<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>&#160;               <span class="stringliteral">&quot;%s and -filter_complex cannot be used together for the same stream.\n&quot;</span>,</div>
<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>&#160;               ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> ? <span class="stringliteral">&quot;Filtergraph&quot;</span> : <span class="stringliteral">&quot;Filtergraph script&quot;</span>,</div>
<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160;               ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> ? ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">filters</a> : ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">filters_script</a>,</div>
<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160;               opt, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">index</a>, opt);</div>
<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>&#160;    }</div>
<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160; </div>
<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>&#160;    avfilter_inout_free(&amp;ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a1571021ae59382241c925f7ee613cd7d">out_tmp</a>);</div>
<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>&#160;}</div>
<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>&#160; </div>
<div class="line"><a name="l02160"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a7ff9fc15df210f9a62862e23e6a18d70"> 2160</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ff9fc15df210f9a62862e23e6a18d70">init_complex_filters</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>&#160;{</div>
<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>&#160;    <span class="keywordtype">int</span> i, ret = 0;</div>
<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>&#160; </div>
<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a>; i++) {</div>
<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160;        ret = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#afdeaca7898e15c0cb645228fd5bb9184">init_complex_filtergraph</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[i]);</div>
<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>&#160;            <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>&#160;    }</div>
<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>&#160;}</div>
<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>&#160; </div>
<div class="line"><a name="l02172"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#ae9aaf2d6ff0cf3a0a665445d00365a68"> 2172</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9aaf2d6ff0cf3a0a665445d00365a68">open_output_file</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename)</div>
<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>&#160;{</div>
<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>&#160;    AVFormatContext *oc;</div>
<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>&#160;    <span class="keywordtype">int</span> i, j, err;</div>
<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>&#160;    <a class="code" href="../../de/df2/struct_output_file.html">OutputFile</a> *of;</div>
<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>&#160;    <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost;</div>
<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>&#160;    <a class="code" href="../../d3/d6e/struct_input_stream.html">InputStream</a>  *ist;</div>
<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>&#160;    AVDictionary *unused_opts = NULL;</div>
<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>&#160;    AVDictionaryEntry *e = NULL;</div>
<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>&#160;    <span class="keywordtype">int</span> format_flags = 0;</div>
<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>&#160; </div>
<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> != INT64_MAX &amp;&amp; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> != INT64_MAX) {</div>
<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> = INT64_MAX;</div>
<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;-t and -to cannot be used together; using -t.\n&quot;</span>);</div>
<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>&#160;    }</div>
<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>&#160; </div>
<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> != INT64_MAX &amp;&amp; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> == INT64_MAX) {</div>
<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>&#160;        int64_t start_time = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a> == AV_NOPTS_VALUE ? 0 : o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>;</div>
<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>&#160;        <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> &lt;= start_time) {</div>
<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;-to value smaller than -ss; aborting.\n&quot;</span>);</div>
<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">stop_time</a> - start_time;</div>
<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>&#160;        }</div>
<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>&#160;    }</div>
<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>&#160; </div>
<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a22c5e53407c3f14a8111e898dff42904">output_files</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a>);</div>
<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>&#160;    of = av_mallocz(<span class="keyword">sizeof</span>(*of));</div>
<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>&#160;    <span class="keywordflow">if</span> (!of)</div>
<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a22c5e53407c3f14a8111e898dff42904">output_files</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1] = of;</div>
<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>&#160; </div>
<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ac09855bfd066c44eb761f84e28f00dce">ost_index</a>      = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>;</div>
<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ad160ce6520aad386bead7eb45f6f55a0">recording_time</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a>;</div>
<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aa4fee66db612c26276b5de30d834d5e0">start_time</a>     = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">start_time</a>;</div>
<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#a4482c7ccf1b6d9f56a7b02490a60fbd8">limit_filesize</a> = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a7af52a5756a9424bbfebe59ab7e08061">limit_filesize</a>;</div>
<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#acfef99893985d28ae7f7f6a92e6d1bd7">shortest</a>       = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ae2d67d4b8daf3a4900bef1db8882b163">shortest</a>;</div>
<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>&#160;    av_dict_copy(&amp;of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aac74ddf07f90ad30cd5ddf80583468ec">opts</a>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, 0);</div>
<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>&#160; </div>
<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>&#160;    <span class="keywordflow">if</span> (!strcmp(filename, <span class="stringliteral">&quot;-&quot;</span>))</div>
<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>&#160;        filename = <span class="stringliteral">&quot;pipe:&quot;</span>;</div>
<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>&#160; </div>
<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>&#160;    err = avformat_alloc_output_context2(&amp;oc, NULL, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a295fefa29d7132a93db9110dce6eeab9">format</a>, filename);</div>
<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>&#160;    <span class="keywordflow">if</span> (!oc) {</div>
<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a>(filename, err);</div>
<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>&#160;    }</div>
<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>&#160; </div>
<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>&#160;    of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#a6bfbcb8e4d6564ae0c488d58c0fb0d5f">ctx</a> = oc;</div>
<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> != INT64_MAX)</div>
<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>&#160;        oc-&gt;duration = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a>;</div>
<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>&#160; </div>
<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>&#160;    oc-&gt;interrupt_callback = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>;</div>
<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>&#160; </div>
<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>&#160;    e = av_dict_get(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <span class="stringliteral">&quot;fflags&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>&#160;    <span class="keywordflow">if</span> (e) {</div>
<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>&#160;        <span class="keyword">const</span> AVOption *o = av_opt_find(oc, <span class="stringliteral">&quot;fflags&quot;</span>, NULL, 0, 0);</div>
<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>&#160;        av_opt_eval_flags(oc, o, e-&gt;value, &amp;format_flags);</div>
<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>&#160;    }</div>
<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a1da3f7560a0c9e44cfd8293a5d3d88ab">bitexact</a>) {</div>
<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>&#160;        format_flags |= AVFMT_FLAG_BITEXACT;</div>
<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>&#160;        oc-&gt;flags    |= AVFMT_FLAG_BITEXACT;</div>
<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>&#160;    }</div>
<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>&#160; </div>
<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>&#160;    <span class="comment">/* create streams for all unlabeled output pads */</span></div>
<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a>; i++) {</div>
<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>&#160;        <a class="code" href="../../d9/de7/struct_filter_graph.html">FilterGraph</a> *fg = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[i];</div>
<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>&#160;        <span class="keywordflow">for</span> (j = 0; j &lt; fg-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#a92c7f6faf7e95b259bce1c717d43b4ee">nb_outputs</a>; j++) {</div>
<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>&#160;            <a class="code" href="../../d0/d0f/struct_output_filter.html">OutputFilter</a> *ofilter = fg-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#aa078de74cae0940747ba826567b74aef">outputs</a>[j];</div>
<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>&#160; </div>
<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>&#160;            <span class="keywordflow">if</span> (!ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a1571021ae59382241c925f7ee613cd7d">out_tmp</a> || ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a1571021ae59382241c925f7ee613cd7d">out_tmp</a>-&gt;name)</div>
<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>&#160; </div>
<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>&#160;            <span class="keywordflow">switch</span> (ofilter-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aed4c46a5df26ff71f3f718a0056af294">type</a>) {</div>
<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>&#160;            <span class="keywordflow">case</span> AVMEDIA_TYPE_VIDEO:    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9cef7b5ff74cf5f810d8bae95b516c66">video_disable</a>    = 1; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>&#160;            <span class="keywordflow">case</span> AVMEDIA_TYPE_AUDIO:    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#aa38553d671e91b5ad6d136923055e5bb">audio_disable</a>    = 1; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>&#160;            <span class="keywordflow">case</span> AVMEDIA_TYPE_SUBTITLE: o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#af54b258dc24371896f1278cc2652472e">subtitle_disable</a> = 1; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>&#160;            }</div>
<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aab8ea01d3694d9b0e70b09a5f1f386e4">init_output_filter</a>(ofilter, o, oc);</div>
<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>&#160;        }</div>
<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>&#160;    }</div>
<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>&#160; </div>
<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>&#160;    <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>) {</div>
<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>&#160;        <span class="keywordtype">char</span> *subtitle_codec_name = NULL;</div>
<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>&#160;        <span class="comment">/* pick the &quot;best&quot; stream of each type */</span></div>
<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>&#160; </div>
<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>&#160;        <span class="comment">/* video: highest resolution */</span></div>
<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>&#160;        <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9cef7b5ff74cf5f810d8bae95b516c66">video_disable</a> &amp;&amp; av_guess_codec(oc-&gt;oformat, NULL, filename, NULL, AVMEDIA_TYPE_VIDEO) != AV_CODEC_ID_NONE) {</div>
<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>&#160;            <span class="keywordtype">int</span> best_score = 0, idx = -1;</div>
<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>&#160;            <span class="keywordtype">int</span> qcr = avformat_query_codec(oc-&gt;oformat, oc-&gt;oformat-&gt;video_codec, 0);</div>
<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>; i++) {</div>
<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>&#160;                <span class="keywordtype">int</span> score;</div>
<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>&#160;                ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i];</div>
<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>&#160;                score = ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;width * ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;height</div>
<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>&#160;                           + 100000000 * !!(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;event_flags &amp; AVSTREAM_EVENT_FLAG_NEW_PACKETS)</div>
<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>&#160;                           + 5000000*!!(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;disposition &amp; AV_DISPOSITION_DEFAULT);</div>
<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> == AVDISCARD_ALL)</div>
<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>&#160;                <span class="keywordflow">if</span>((qcr!=MKTAG(<span class="charliteral">&#39;A&#39;</span>, <span class="charliteral">&#39;P&#39;</span>, <span class="charliteral">&#39;I&#39;</span>, <span class="charliteral">&#39;C&#39;</span>)) &amp;&amp; (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;disposition &amp; AV_DISPOSITION_ATTACHED_PIC))</div>
<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>&#160;                    score = 1;</div>
<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_VIDEO &amp;&amp;</div>
<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>&#160;                    score &gt; best_score) {</div>
<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>&#160;                    <span class="keywordflow">if</span>((qcr==MKTAG(<span class="charliteral">&#39;A&#39;</span>, <span class="charliteral">&#39;P&#39;</span>, <span class="charliteral">&#39;I&#39;</span>, <span class="charliteral">&#39;C&#39;</span>)) &amp;&amp; !(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;disposition &amp; AV_DISPOSITION_ATTACHED_PIC))</div>
<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>&#160;                    best_score = score;</div>
<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>&#160;                    idx = i;</div>
<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>&#160;                }</div>
<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>&#160;            }</div>
<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>&#160;            <span class="keywordflow">if</span> (idx &gt;= 0)</div>
<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>&#160;                <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adc3928a88e1ab2eacb04c5fa1b6bfe00">new_video_stream</a>(o, oc, idx);</div>
<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>&#160;        }</div>
<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>&#160; </div>
<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>&#160;        <span class="comment">/* audio: most channels */</span></div>
<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>&#160;        <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#aa38553d671e91b5ad6d136923055e5bb">audio_disable</a> &amp;&amp; av_guess_codec(oc-&gt;oformat, NULL, filename, NULL, AVMEDIA_TYPE_AUDIO) != AV_CODEC_ID_NONE) {</div>
<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>&#160;            <span class="keywordtype">int</span> best_score = 0, idx = -1;</div>
<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>; i++) {</div>
<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>&#160;                <span class="keywordtype">int</span> score;</div>
<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>&#160;                ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i];</div>
<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>&#160;                score = ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;channels + 100000000*!!ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codec_info_nb_frames</div>
<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>&#160;                        + 5000000*!!(ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;disposition &amp; AV_DISPOSITION_DEFAULT);</div>
<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> == AVDISCARD_ALL)</div>
<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_AUDIO &amp;&amp;</div>
<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>&#160;                    score &gt; best_score) {</div>
<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>&#160;                    best_score = score;</div>
<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>&#160;                    idx = i;</div>
<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>&#160;                }</div>
<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>&#160;            }</div>
<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>&#160;            <span class="keywordflow">if</span> (idx &gt;= 0)</div>
<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>&#160;                <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15a211f78437d8b76343ffb6a5ed7691">new_audio_stream</a>(o, oc, idx);</div>
<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>&#160;        }</div>
<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>&#160; </div>
<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>&#160;        <span class="comment">/* subtitles: pick first */</span></div>
<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str, subtitle_codec_name, oc, <span class="stringliteral">&quot;s&quot;</span>);</div>
<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>&#160;        <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#af54b258dc24371896f1278cc2652472e">subtitle_disable</a> &amp;&amp; (avcodec_find_encoder(oc-&gt;oformat-&gt;subtitle_codec) || subtitle_codec_name)) {</div>
<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>; i++)</div>
<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;st-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_SUBTITLE) {</div>
<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>&#160;                    AVCodecDescriptor <span class="keyword">const</span> *input_descriptor =</div>
<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>&#160;                        avcodec_descriptor_get(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;st-&gt;codecpar-&gt;codec_id);</div>
<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>&#160;                    AVCodecDescriptor <span class="keyword">const</span> *output_descriptor = NULL;</div>
<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>&#160;                    AVCodec <span class="keyword">const</span> *output_codec =</div>
<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>&#160;                        avcodec_find_encoder(oc-&gt;oformat-&gt;subtitle_codec);</div>
<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>&#160;                    <span class="keywordtype">int</span> input_props = 0, output_props = 0;</div>
<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;user_set_discard == AVDISCARD_ALL)</div>
<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>&#160;                    <span class="keywordflow">if</span> (output_codec)</div>
<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>&#160;                        output_descriptor = avcodec_descriptor_get(output_codec-&gt;id);</div>
<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>&#160;                    <span class="keywordflow">if</span> (input_descriptor)</div>
<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>&#160;                        input_props = input_descriptor-&gt;props &amp; (AV_CODEC_PROP_TEXT_SUB | AV_CODEC_PROP_BITMAP_SUB);</div>
<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>&#160;                    <span class="keywordflow">if</span> (output_descriptor)</div>
<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>&#160;                        output_props = output_descriptor-&gt;props &amp; (AV_CODEC_PROP_TEXT_SUB | AV_CODEC_PROP_BITMAP_SUB);</div>
<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>&#160;                    <span class="keywordflow">if</span> (subtitle_codec_name ||</div>
<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>&#160;                        input_props &amp; output_props ||</div>
<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>&#160;                        <span class="comment">// Map dvb teletext which has neither property to any output subtitle encoder</span></div>
<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>&#160;                        (input_descriptor &amp;&amp; output_descriptor &amp;&amp;</div>
<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>&#160;                        (!input_descriptor-&gt;props ||</div>
<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>&#160;                         !output_descriptor-&gt;props))) {</div>
<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>&#160;                        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a226ddaa939f9e92fefe8590b96711b29">new_subtitle_stream</a>(o, oc, i);</div>
<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>&#160;                    }</div>
<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>&#160;                }</div>
<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>&#160;        }</div>
<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>&#160;        <span class="comment">/* Data only if codec id match */</span></div>
<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>&#160;        <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a98dc9e32a35d8357e85325bf995fc9ac">data_disable</a> ) {</div>
<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>&#160;            <span class="keyword">enum</span> AVCodecID codec_id = av_guess_codec(oc-&gt;oformat, NULL, filename, NULL, AVMEDIA_TYPE_DATA);</div>
<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>&#160;            <span class="keywordflow">for</span> (i = 0; codec_id != AV_CODEC_ID_NONE &amp;&amp; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a>; i++) {</div>
<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;user_set_discard == AVDISCARD_ALL)</div>
<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;st-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_DATA</div>
<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>&#160;                    &amp;&amp; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[i]-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_id == codec_id )</div>
<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>&#160;                    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1202336863f378d4602072dfa5efdf5">new_data_stream</a>(o, oc, i);</div>
<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>&#160;            }</div>
<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>&#160;        }</div>
<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">nb_stream_maps</a>; i++) {</div>
<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>&#160;            <a class="code" href="../../db/d60/struct_stream_map.html">StreamMap</a> *map = &amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">stream_maps</a>[i];</div>
<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>&#160; </div>
<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>&#160;            <span class="keywordflow">if</span> (map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a4b146ee6da0df9d55d435d9153636504">disabled</a>)</div>
<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>&#160; </div>
<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>&#160;            <span class="keywordflow">if</span> (map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a>) {</div>
<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>&#160;                <a class="code" href="../../d9/de7/struct_filter_graph.html">FilterGraph</a> *fg;</div>
<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>&#160;                <a class="code" href="../../d0/d0f/struct_output_filter.html">OutputFilter</a> *ofilter = NULL;</div>
<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>&#160;                <span class="keywordtype">int</span> j, k;</div>
<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>&#160; </div>
<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>&#160;                <span class="keywordflow">for</span> (j = 0; j &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a>; j++) {</div>
<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>&#160;                    fg = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[j];</div>
<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>&#160;                    <span class="keywordflow">for</span> (k = 0; k &lt; fg-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#a92c7f6faf7e95b259bce1c717d43b4ee">nb_outputs</a>; k++) {</div>
<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>&#160;                        AVFilterInOut *out = fg-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#aa078de74cae0940747ba826567b74aef">outputs</a>[k]-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a1571021ae59382241c925f7ee613cd7d">out_tmp</a>;</div>
<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>&#160;                        <span class="keywordflow">if</span> (out &amp;&amp; !strcmp(out-&gt;name, map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a>)) {</div>
<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>&#160;                            ofilter = fg-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#aa078de74cae0940747ba826567b74aef">outputs</a>[k];</div>
<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>&#160;                            <span class="keywordflow">goto</span> loop_end;</div>
<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>&#160;                        }</div>
<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>&#160;                    }</div>
<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>&#160;                }</div>
<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>&#160;loop_end:</div>
<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>&#160;                <span class="keywordflow">if</span> (!ofilter) {</div>
<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Output with label &#39;%s&#39; does not exist &quot;</span></div>
<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>&#160;                           <span class="stringliteral">&quot;in any defined filter graph, or was already used elsewhere.\n&quot;</span>, map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">linklabel</a>);</div>
<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>&#160;                }</div>
<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>&#160;                <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aab8ea01d3694d9b0e70b09a5f1f386e4">init_output_filter</a>(ofilter, o, oc);</div>
<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>&#160;                <span class="keywordtype">int</span> src_idx = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a> + map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a>;</div>
<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>&#160; </div>
<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>&#160;                ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a> + map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a>];</div>
<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>&#160;                <span class="keywordflow">if</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">user_set_discard</a> == AVDISCARD_ALL) {</div>
<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Stream #%d:%d is disabled and cannot be mapped.\n&quot;</span>,</div>
<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>&#160;                           map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>, map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a>);</div>
<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>&#160;                }</div>
<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>&#160;                <span class="keywordflow">if</span>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#af54b258dc24371896f1278cc2652472e">subtitle_disable</a> &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_SUBTITLE)</div>
<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>&#160;                <span class="keywordflow">if</span>(o-&gt;   audio_disable &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_AUDIO)</div>
<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>&#160;                <span class="keywordflow">if</span>(o-&gt;   video_disable &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_VIDEO)</div>
<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>&#160;                <span class="keywordflow">if</span>(o-&gt;    data_disable &amp;&amp; ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_DATA)</div>
<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>&#160; </div>
<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>&#160;                ost = NULL;</div>
<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>&#160;                <span class="keywordflow">switch</span> (ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;codecpar-&gt;codec_type) {</div>
<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_VIDEO:      ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adc3928a88e1ab2eacb04c5fa1b6bfe00">new_video_stream</a>     (o, oc, src_idx); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_AUDIO:      ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15a211f78437d8b76343ffb6a5ed7691">new_audio_stream</a>     (o, oc, src_idx); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_SUBTITLE:   ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a226ddaa939f9e92fefe8590b96711b29">new_subtitle_stream</a>  (o, oc, src_idx); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_DATA:       ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1202336863f378d4602072dfa5efdf5">new_data_stream</a>      (o, oc, src_idx); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_ATTACHMENT: ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0c3773fd5bc3734795991b7a8eda2565">new_attachment_stream</a>(o, oc, src_idx); <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>&#160;                <span class="keywordflow">case</span> AVMEDIA_TYPE_UNKNOWN:</div>
<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ea9613c6b24f9f9aec20afde671ad3a">copy_unknown_streams</a>) {</div>
<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>&#160;                        ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad63f18efd0a1c58dfecf770f75868198">new_unknown_stream</a>   (o, oc, src_idx);</div>
<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>&#160;                    }</div>
<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>&#160;                    av_log(NULL, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af776ea0ed951054185f753d7d255d884">ignore_unknown_streams</a> ? AV_LOG_WARNING : AV_LOG_FATAL,</div>
<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>&#160;                           <span class="stringliteral">&quot;Cannot map stream #%d:%d - unsupported type.\n&quot;</span>,</div>
<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>&#160;                           map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">file_index</a>, map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">stream_index</a>);</div>
<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>&#160;                    <span class="keywordflow">if</span> (!<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af776ea0ed951054185f753d7d255d884">ignore_unknown_streams</a>) {</div>
<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>&#160;                        av_log(NULL, AV_LOG_FATAL,</div>
<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>&#160;                               <span class="stringliteral">&quot;If you want unsupported types ignored instead &quot;</span></div>
<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>&#160;                               <span class="stringliteral">&quot;of failing, please use the -ignore_unknown option\n&quot;</span></div>
<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>&#160;                               <span class="stringliteral">&quot;If you want them copied, please use -copy_unknown\n&quot;</span>);</div>
<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>&#160;                    }</div>
<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>&#160;                }</div>
<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>&#160;                <span class="keywordflow">if</span> (ost)</div>
<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>&#160;                    ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abc0329cada4c47662e2777d392a38efb">sync_ist</a> = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[  <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#aebf79dd4732117dab9f6b88ffe0d6fb0">sync_file_index</a>]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">ist_index</a></div>
<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>&#160;                                                  + map-&gt;<a class="code" href="../../db/d60/struct_stream_map.html#a8839b093e6e8ae59892cfe68d9dc99c6">sync_stream_index</a>];</div>
<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>&#160;            }</div>
<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>&#160;        }</div>
<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>&#160;    }</div>
<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>&#160; </div>
<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>&#160;    <span class="comment">/* handle attached files */</span></div>
<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a34f0a7746fbd5a5848fbdb5fac7ce7af">nb_attachments</a>; i++) {</div>
<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>&#160;        AVIOContext *pb;</div>
<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>&#160;        uint8_t *attachment;</div>
<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *p;</div>
<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>&#160;        int64_t len;</div>
<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>&#160; </div>
<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>&#160;        <span class="keywordflow">if</span> ((err = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(&amp;pb, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i], AVIO_FLAG_READ, &amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>, NULL)) &lt; 0) {</div>
<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not open attachment file %s.\n&quot;</span>,</div>
<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>&#160;                   o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i]);</div>
<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>&#160;        }</div>
<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>&#160;        <span class="keywordflow">if</span> ((len = avio_size(pb)) &lt;= 0) {</div>
<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not get size of the attachment %s.\n&quot;</span>,</div>
<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>&#160;                   o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i]);</div>
<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>&#160;        }</div>
<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>&#160;        <span class="keywordflow">if</span> (len &gt; INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE ||</div>
<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>&#160;            !(attachment = av_malloc(len + AV_INPUT_BUFFER_PADDING_SIZE))) {</div>
<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Attachment %s too large.\n&quot;</span>,</div>
<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>&#160;                   o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i]);</div>
<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>&#160;        }</div>
<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>&#160;        avio_read(pb, attachment, len);</div>
<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>&#160;        memset(attachment + len, 0, AV_INPUT_BUFFER_PADDING_SIZE);</div>
<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>&#160; </div>
<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>&#160;        ost = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0c3773fd5bc3734795991b7a8eda2565">new_attachment_stream</a>(o, oc, -1);</div>
<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a>               = 0;</div>
<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa65108bd50cba339c4ad09ffc5fe77ac">attachment_filename</a>       = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i];</div>
<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;extradata      = attachment;</div>
<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>&#160;        ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;extradata_size = len;</div>
<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>&#160; </div>
<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>&#160;        p = strrchr(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i], <span class="charliteral">&#39;/&#39;</span>);</div>
<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>&#160;        av_dict_set(&amp;ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;metadata, <span class="stringliteral">&quot;filename&quot;</span>, (p &amp;&amp; *p) ? p + 1 : o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">attachments</a>[i], AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>&#160;        <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#ad630e12e35075294df64066949aece9b">avio_closep</a>(&amp;pb);</div>
<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>&#160;    }</div>
<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>&#160; </div>
<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>&#160;<span class="preprocessor">#if FF_API_LAVF_AVCTX</span></div>
<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>&#160;    <span class="keywordflow">for</span> (i = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a> - oc-&gt;nb_streams; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>; i++) { <span class="comment">//for all streams of this output file</span></div>
<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>&#160;        AVDictionaryEntry *e;</div>
<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>&#160;        ost = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i];</div>
<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>&#160; </div>
<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>&#160;        <span class="keywordflow">if</span> ((ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">stream_copy</a> || ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#aa65108bd50cba339c4ad09ffc5fe77ac">attachment_filename</a>)</div>
<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>&#160;            &amp;&amp; (e = av_dict_get(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, <span class="stringliteral">&quot;flags&quot;</span>, NULL, AV_DICT_IGNORE_SUFFIX))</div>
<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>&#160;            &amp;&amp; (!e-&gt;key[5] || <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(oc, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>, e-&gt;key+6)))</div>
<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>&#160;            <span class="keywordflow">if</span> (av_opt_set(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codec, <span class="stringliteral">&quot;flags&quot;</span>, e-&gt;value, 0) &lt; 0)</div>
<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>&#160;    }</div>
<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>&#160; </div>
<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>&#160;    <span class="keywordflow">if</span> (!oc-&gt;nb_streams &amp;&amp; !(oc-&gt;oformat-&gt;flags &amp; AVFMT_NOSTREAMS)) {</div>
<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>&#160;        av_dump_format(oc, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1, oc-&gt;url, 1);</div>
<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Output file #%d does not contain any stream\n&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1);</div>
<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>&#160;    }</div>
<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>&#160; </div>
<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>&#160;    <span class="comment">/* check if all codec options have been used */</span></div>
<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>&#160;    unused_opts = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1f22665dffd8f63fb4f4bce3a1b5b6c">strip_specifiers</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>);</div>
<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>&#160;    <span class="keywordflow">for</span> (i = of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ac09855bfd066c44eb761f84e28f00dce">ost_index</a>; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>; i++) {</div>
<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>&#160;        e = NULL;</div>
<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>&#160;        <span class="keywordflow">while</span> ((e = av_dict_get(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;encoder_opts, <span class="stringliteral">&quot;&quot;</span>, e,</div>
<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>&#160;                                AV_DICT_IGNORE_SUFFIX)))</div>
<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>&#160;            av_dict_set(&amp;unused_opts, e-&gt;key, NULL, 0);</div>
<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>&#160;    }</div>
<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>&#160; </div>
<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>&#160;    e = NULL;</div>
<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>&#160;    <span class="keywordflow">while</span> ((e = av_dict_get(unused_opts, <span class="stringliteral">&quot;&quot;</span>, e, AV_DICT_IGNORE_SUFFIX))) {</div>
<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>&#160;        <span class="keyword">const</span> AVClass *<span class="keyword">class </span>= avcodec_get_class();</div>
<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>&#160;        <span class="keyword">const</span> AVOption *option = av_opt_find(&amp;<span class="keyword">class</span>, e-&gt;key, NULL, 0,</div>
<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>&#160;                                             AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);</div>
<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>&#160;        <span class="keyword">const</span> AVClass *fclass = avformat_get_class();</div>
<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>&#160;        <span class="keyword">const</span> AVOption *foption = av_opt_find(&amp;fclass, e-&gt;key, NULL, 0,</div>
<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>&#160;                                              AV_OPT_SEARCH_CHILDREN | AV_OPT_SEARCH_FAKE_OBJ);</div>
<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>&#160;        <span class="keywordflow">if</span> (!option || foption)</div>
<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>&#160; </div>
<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>&#160; </div>
<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>&#160;        <span class="keywordflow">if</span> (!(option-&gt;flags &amp; AV_OPT_FLAG_ENCODING_PARAM)) {</div>
<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Codec AVOption %s (%s) specified for &quot;</span></div>
<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>&#160;                   <span class="stringliteral">&quot;output file #%d (%s) is not an encoding option.\n&quot;</span>, e-&gt;key,</div>
<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>&#160;                   option-&gt;help ? option-&gt;help : <span class="stringliteral">&quot;&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1,</div>
<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>&#160;                   filename);</div>
<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>&#160;        }</div>
<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>&#160; </div>
<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>&#160;        <span class="comment">// gop_timecode is injected by generic code but not always used</span></div>
<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>&#160;        <span class="keywordflow">if</span> (!strcmp(e-&gt;key, <span class="stringliteral">&quot;gop_timecode&quot;</span>))</div>
<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>&#160; </div>
<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Codec AVOption %s (%s) specified for &quot;</span></div>
<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>&#160;               <span class="stringliteral">&quot;output file #%d (%s) has not been used for any stream. The most &quot;</span></div>
<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>&#160;               <span class="stringliteral">&quot;likely reason is either wrong type (e.g. a video option with &quot;</span></div>
<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>&#160;               <span class="stringliteral">&quot;no video streams) or that it is a private option of some encoder &quot;</span></div>
<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>&#160;               <span class="stringliteral">&quot;which was not actually used for any stream.\n&quot;</span>, e-&gt;key,</div>
<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>&#160;               option-&gt;help ? option-&gt;help : <span class="stringliteral">&quot;&quot;</span>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1, filename);</div>
<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>&#160;    }</div>
<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>&#160;    av_dict_free(&amp;unused_opts);</div>
<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>&#160; </div>
<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>&#160;    <span class="comment">/* set the decoding_needed flags and create simple filtergraphs */</span></div>
<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>&#160;    <span class="keywordflow">for</span> (i = of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ac09855bfd066c44eb761f84e28f00dce">ost_index</a>; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>; i++) {</div>
<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>&#160;        <a class="code" href="../../db/dde/struct_output_stream.html">OutputStream</a> *ost = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i];</div>
<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>&#160; </div>
<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>&#160;        <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#abd0357b7272cdb232e2db73eb458329e">encoding_needed</a> &amp;&amp; ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a> &gt;= 0) {</div>
<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>&#160;            <a class="code" href="../../d3/d6e/struct_input_stream.html">InputStream</a> *ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a>];</div>
<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>&#160;            ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ac9fc51324b931c1db5c5c1445fe70c3b">decoding_needed</a> |= <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ac19c669906e50a4be81b78eb8777ca8c">DECODING_FOR_OST</a>;</div>
<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>&#160; </div>
<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>&#160;            <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_VIDEO ||</div>
<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>&#160;                ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;codecpar-&gt;codec_type == AVMEDIA_TYPE_AUDIO) {</div>
<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>&#160;                err = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a82f6df78dc4d5a93f9708b27f16de2b5">init_simple_filtergraph</a>(ist, ost);</div>
<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>&#160;                <span class="keywordflow">if</span> (err &lt; 0) {</div>
<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>&#160;                    av_log(NULL, AV_LOG_ERROR,</div>
<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>&#160;                           <span class="stringliteral">&quot;Error initializing a simple filtergraph between streams &quot;</span></div>
<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>&#160;                           <span class="stringliteral">&quot;%d:%d-&gt;%d:%d\n&quot;</span>, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#ad47d834630eee2dca258aa449fb1df47">file_index</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a>,</div>
<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>&#160;                           <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a> - 1, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">st</a>-&gt;index);</div>
<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>&#160;                }</div>
<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>&#160;            }</div>
<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>&#160;        }</div>
<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>&#160; </div>
<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>&#160;        <span class="comment">/* set the filter output constraints */</span></div>
<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>&#160;        <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad8926e7de923b3eeabd66770caacfe1e">filter</a>) {</div>
<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>&#160;            <a class="code" href="../../d0/d0f/struct_output_filter.html">OutputFilter</a> *f = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad8926e7de923b3eeabd66770caacfe1e">filter</a>;</div>
<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>&#160;            <span class="keywordtype">int</span> count;</div>
<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>&#160;            <span class="keywordflow">switch</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;codec_type) {</div>
<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>&#160;            <span class="keywordflow">case</span> AVMEDIA_TYPE_VIDEO:</div>
<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>&#160;                f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#ad45013a89f85087d03166652a94d1453">frame_rate</a> = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab13acc03a389653d882f221141f12ae3">frame_rate</a>;</div>
<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>&#160;                f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a0a621d752f3ab33e67f0a8f22bee4118">width</a>      = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;width;</div>
<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>&#160;                f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aaf9223843b6d814783f74c85b38de080">height</a>     = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;height;</div>
<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>&#160;                <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;pix_fmt != AV_PIX_FMT_NONE) {</div>
<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aeba350050d2035d755254154e6551c49">format</a> = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;pix_fmt;</div>
<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;pix_fmts) {</div>
<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>&#160;                    count = 0;</div>
<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>&#160;                    <span class="keywordflow">while</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;pix_fmts[count] != AV_PIX_FMT_NONE)</div>
<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>&#160;                        count++;</div>
<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a> = av_mallocz_array(count + 1, <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>));</div>
<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>&#160;                    <span class="keywordflow">if</span> (!f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>)</div>
<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>&#160;                    memcpy(f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;pix_fmts, (count + 1) * <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>));</div>
<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>&#160;                }</div>
<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>&#160;            <span class="keywordflow">case</span> AVMEDIA_TYPE_AUDIO:</div>
<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>&#160;                <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;sample_fmt != AV_SAMPLE_FMT_NONE) {</div>
<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#aeba350050d2035d755254154e6551c49">format</a> = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;sample_fmt;</div>
<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;sample_fmts) {</div>
<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>&#160;                    count = 0;</div>
<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>&#160;                    <span class="keywordflow">while</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;sample_fmts[count] != AV_SAMPLE_FMT_NONE)</div>
<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>&#160;                        count++;</div>
<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a> = av_mallocz_array(count + 1, <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>));</div>
<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>&#160;                    <span class="keywordflow">if</span> (!f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>)</div>
<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>&#160;                    memcpy(f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;sample_fmts, (count + 1) * <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">formats</a>));</div>
<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>&#160;                }</div>
<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>&#160;                <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;sample_rate) {</div>
<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#ab0be1ec413ca98912667f1bf76fd2588">sample_rate</a> = ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;sample_rate;</div>
<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;supported_samplerates) {</div>
<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>&#160;                    count = 0;</div>
<div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>&#160;                    <span class="keywordflow">while</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;supported_samplerates[count])</div>
<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>&#160;                        count++;</div>
<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">sample_rates</a> = av_mallocz_array(count + 1, <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">sample_rates</a>));</div>
<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>&#160;                    <span class="keywordflow">if</span> (!f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">sample_rates</a>)</div>
<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>&#160;                    memcpy(f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">sample_rates</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;supported_samplerates,</div>
<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>&#160;                           (count + 1) * <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">sample_rates</a>));</div>
<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>&#160;                }</div>
<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>&#160;                <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;channels) {</div>
<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#ae591539feb7f41d19236244a0dcf3896">channel_layout</a> = av_get_default_channel_layout(ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">enc_ctx</a>-&gt;channels);</div>
<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;channel_layouts) {</div>
<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>&#160;                    count = 0;</div>
<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>&#160;                    <span class="keywordflow">while</span> (ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;channel_layouts[count])</div>
<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>&#160;                        count++;</div>
<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>&#160;                    f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">channel_layouts</a> = av_mallocz_array(count + 1, <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">channel_layouts</a>));</div>
<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>&#160;                    <span class="keywordflow">if</span> (!f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">channel_layouts</a>)</div>
<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>&#160;                        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>&#160;                    memcpy(f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">channel_layouts</a>, ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">enc</a>-&gt;channel_layouts,</div>
<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>&#160;                           (count + 1) * <span class="keyword">sizeof</span>(*f-&gt;<a class="code" href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">channel_layouts</a>));</div>
<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>&#160;                }</div>
<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>&#160;            }</div>
<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>&#160;        }</div>
<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>&#160;    }</div>
<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>&#160; </div>
<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>&#160;    <span class="comment">/* check filename in case of an image number is expected */</span></div>
<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>&#160;    <span class="keywordflow">if</span> (oc-&gt;oformat-&gt;flags &amp; AVFMT_NEEDNUMBER) {</div>
<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>&#160;        <span class="keywordflow">if</span> (!av_filename_number_test(oc-&gt;url)) {</div>
<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a>(oc-&gt;url, AVERROR(EINVAL));</div>
<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>&#160;        }</div>
<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>&#160;    }</div>
<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>&#160; </div>
<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>&#160;    <span class="keywordflow">if</span> (!(oc-&gt;oformat-&gt;flags &amp; AVFMT_NOSTREAMS) &amp;&amp; !<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a>) {</div>
<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>&#160;        av_log(NULL, AV_LOG_ERROR,</div>
<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>&#160;               <span class="stringliteral">&quot;No input streams but output needs an input stream\n&quot;</span>);</div>
<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>&#160;    }</div>
<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>&#160; </div>
<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>&#160;    <span class="keywordflow">if</span> (!(oc-&gt;oformat-&gt;flags &amp; AVFMT_NOFILE)) {</div>
<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>&#160;        <span class="comment">/* test if it already exists to avoid losing precious files */</span></div>
<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9bc9a2fdcee987f9900054f9d7dc28e9">assert_file_overwrite</a>(filename);</div>
<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>&#160; </div>
<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>&#160;        <span class="comment">/* open the file */</span></div>
<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>&#160;        <span class="keywordflow">if</span> ((err = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(&amp;oc-&gt;pb, filename, AVIO_FLAG_WRITE,</div>
<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>&#160;                              &amp;oc-&gt;interrupt_callback,</div>
<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>&#160;                              &amp;of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aac74ddf07f90ad30cd5ddf80583468ec">opts</a>)) &lt; 0) {</div>
<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a>(filename, err);</div>
<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>&#160;        }</div>
<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strcmp(oc-&gt;oformat-&gt;name, <span class="stringliteral">&quot;image2&quot;</span>)==0 &amp;&amp; !av_filename_number_test(filename))</div>
<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9bc9a2fdcee987f9900054f9d7dc28e9">assert_file_overwrite</a>(filename);</div>
<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>&#160; </div>
<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a07d718f49941fb773665ac6f0657bab8">mux_preload</a>) {</div>
<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>&#160;        av_dict_set_int(&amp;of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#aac74ddf07f90ad30cd5ddf80583468ec">opts</a>, <span class="stringliteral">&quot;preload&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a07d718f49941fb773665ac6f0657bab8">mux_preload</a>*AV_TIME_BASE, 0);</div>
<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>&#160;    }</div>
<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>&#160;    oc-&gt;max_delay = (<a class="code" href="../../d2/d36/fftools__ffmpeg__filter_8c.html#a61569f2965b7a369eb10b6d75d410d11">int</a>)(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#adefe378fc52e83215a84f9fd8fd40e0e">mux_max_delay</a> * AV_TIME_BASE);</div>
<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>&#160; </div>
<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>&#160;    <span class="comment">/* copy metadata */</span></div>
<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a76aae7426ad256206718ef4c503a882d">nb_metadata_map</a>; i++) {</div>
<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>&#160;        <span class="keywordtype">char</span> *p;</div>
<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>&#160;        <span class="keywordtype">int</span> in_file_index = strtol(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a05f340e8bd1fb8084c1ea6e41b09b4bd">metadata_map</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, &amp;p, 0);</div>
<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>&#160; </div>
<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>&#160;        <span class="keywordflow">if</span> (in_file_index &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>) {</div>
<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid input file index %d while processing metadata maps\n&quot;</span>, in_file_index);</div>
<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>&#160;        }</div>
<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ada7285da9f88d7f0a0b31eaf66a33200">fftools_copy_metadata</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a05f340e8bd1fb8084c1ea6e41b09b4bd">metadata_map</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">specifier</a>, *p ? p + 1 : p, oc,</div>
<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>&#160;                      in_file_index &gt;= 0 ?</div>
<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>&#160;                      <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[in_file_index]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a> : NULL, o);</div>
<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>&#160;    }</div>
<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>&#160; </div>
<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>&#160;    <span class="comment">/* copy chapters */</span></div>
<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> &gt;= <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>) {</div>
<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>&#160;        <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> == INT_MAX) {</div>
<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>&#160;            <span class="comment">/* copy chapters from the first input file that has them*/</span></div>
<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>&#160;            o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> = -1;</div>
<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>&#160;            <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>; i++)</div>
<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[i]-&gt;ctx-&gt;nb_chapters) {</div>
<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>&#160;                    o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> = i;</div>
<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>&#160;                }</div>
<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid input file index %d in chapter mapping.\n&quot;</span>,</div>
<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>&#160;                   o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a>);</div>
<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>&#160;        }</div>
<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>&#160;    }</div>
<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>&#160;    <span class="keywordflow">if</span> (o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a> &gt;= 0)</div>
<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15ce1619315986c72f387e9b41a0ff10">copy_chapters</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">chapters_input_file</a>], of,</div>
<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>&#160;                      !o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ab05f5a3458331e424098215ded646189">metadata_chapters_manual</a>);</div>
<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>&#160; </div>
<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>&#160;    <span class="comment">/* copy global metadata by default */</span></div>
<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>&#160;    <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a41bb08c4be0cdb0706728c266a866834">metadata_global_manual</a> &amp;&amp; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>){</div>
<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>&#160;        av_dict_copy(&amp;oc-&gt;metadata, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[0]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;metadata,</div>
<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>&#160;                     AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>&#160;        <span class="keywordflow">if</span>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">recording_time</a> != INT64_MAX)</div>
<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>&#160;            av_dict_set(&amp;oc-&gt;metadata, <span class="stringliteral">&quot;duration&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>&#160;        av_dict_set(&amp;oc-&gt;metadata, <span class="stringliteral">&quot;creation_time&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>&#160;        av_dict_set(&amp;oc-&gt;metadata, <span class="stringliteral">&quot;company_name&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>&#160;        av_dict_set(&amp;oc-&gt;metadata, <span class="stringliteral">&quot;product_name&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>&#160;        av_dict_set(&amp;oc-&gt;metadata, <span class="stringliteral">&quot;product_version&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>&#160;    }</div>
<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>&#160;    <span class="keywordflow">if</span> (!o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a5bc5b900472685d4c3c33352f3300254">metadata_streams_manual</a>)</div>
<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>&#160;        <span class="keywordflow">for</span> (i = of-&gt;<a class="code" href="../../de/df2/struct_output_file.html#ac09855bfd066c44eb761f84e28f00dce">ost_index</a>; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a>; i++) {</div>
<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>&#160;            <a class="code" href="../../d3/d6e/struct_input_stream.html">InputStream</a> *ist;</div>
<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;source_index &lt; 0)         <span class="comment">/* this is true e.g. for attached files */</span></div>
<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>&#160;            ist = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">source_index</a>];</div>
<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>&#160;            av_dict_copy(&amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;st-&gt;metadata, ist-&gt;<a class="code" href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">st</a>-&gt;metadata, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;stream_copy) {</div>
<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>&#160;                av_dict_set(&amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[i]-&gt;st-&gt;metadata, <span class="stringliteral">&quot;encoder&quot;</span>, NULL, 0);</div>
<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>&#160;            }</div>
<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>&#160;        }</div>
<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>&#160; </div>
<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>&#160;    <span class="comment">/* process manually set programs */</span></div>
<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ab5b3f2e73b482fa9b96f74d2cdd0f012">nb_program</a>; i++) {</div>
<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *p = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ad5b2e0fb210c4bb546852fc813af0797">program</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>;</div>
<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>&#160;        <span class="keywordtype">int</span> progid = i+1;</div>
<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>&#160;        AVProgram *program;</div>
<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>&#160; </div>
<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>&#160;        <span class="keywordflow">while</span>(*p) {</div>
<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">char</span> *p2 = av_get_token(&amp;p, <span class="stringliteral">&quot;:&quot;</span>);</div>
<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">char</span> *to_dealloc = p2;</div>
<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>&#160;            <span class="keywordtype">char</span> *key;</div>
<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>&#160;            <span class="keywordflow">if</span> (!p2)</div>
<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>&#160; </div>
<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>&#160;            <span class="keywordflow">if</span>(*p) p++;</div>
<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>&#160; </div>
<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>&#160;            key = av_get_token(&amp;p2, <span class="stringliteral">&quot;=&quot;</span>);</div>
<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>&#160;            <span class="keywordflow">if</span> (!key || !*p2) {</div>
<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>&#160;                av_freep(&amp;to_dealloc);</div>
<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>&#160;                av_freep(&amp;key);</div>
<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>&#160;            }</div>
<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>&#160;            p2++;</div>
<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>&#160; </div>
<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>&#160;            <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;program_num&quot;</span>))</div>
<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>&#160;                progid = strtol(p2, NULL, 0);</div>
<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>&#160;            av_freep(&amp;to_dealloc);</div>
<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>&#160;            av_freep(&amp;key);</div>
<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>&#160;        }</div>
<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>&#160; </div>
<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>&#160;        program = av_new_program(oc, progid);</div>
<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>&#160; </div>
<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>&#160;        p = o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#ad5b2e0fb210c4bb546852fc813af0797">program</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>;</div>
<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>&#160;        <span class="keywordflow">while</span>(*p) {</div>
<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">char</span> *p2 = av_get_token(&amp;p, <span class="stringliteral">&quot;:&quot;</span>);</div>
<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">char</span> *to_dealloc = p2;</div>
<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>&#160;            <span class="keywordtype">char</span> *key;</div>
<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>&#160;            <span class="keywordflow">if</span> (!p2)</div>
<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>&#160;            <span class="keywordflow">if</span>(*p) p++;</div>
<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>&#160; </div>
<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>&#160;            key = av_get_token(&amp;p2, <span class="stringliteral">&quot;=&quot;</span>);</div>
<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>&#160;            <span class="keywordflow">if</span> (!key) {</div>
<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>&#160;                av_log(NULL, AV_LOG_FATAL,</div>
<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160;                       <span class="stringliteral">&quot;No &#39;=&#39; character in program string %s.\n&quot;</span>,</div>
<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160;                       p2);</div>
<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>&#160;            }</div>
<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>&#160;            <span class="keywordflow">if</span> (!*p2)</div>
<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160;            p2++;</div>
<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160; </div>
<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>&#160;            <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;title&quot;</span>)) {</div>
<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>&#160;                av_dict_set(&amp;program-&gt;metadata, <span class="stringliteral">&quot;title&quot;</span>, p2, 0);</div>
<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;program_num&quot;</span>)) {</div>
<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;st&quot;</span>)) {</div>
<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>&#160;                <span class="keywordtype">int</span> st_num = strtol(p2, NULL, 0);</div>
<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>&#160;                av_program_add_stream_index(oc, progid, st_num);</div>
<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unknown program key %s.\n&quot;</span>, key);</div>
<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160;            }</div>
<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160;            av_freep(&amp;to_dealloc);</div>
<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160;            av_freep(&amp;key);</div>
<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160;        }</div>
<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;    }</div>
<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>&#160; </div>
<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>&#160;    <span class="comment">/* process manually set metadata */</span></div>
<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a54dfb761028d4c10ed38c63a29f846ce">nb_metadata</a>; i++) {</div>
<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160;        AVDictionary **m;</div>
<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160;        <span class="keywordtype">char</span> type, *val;</div>
<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *stream_spec;</div>
<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>&#160;        <span class="keywordtype">int</span> index = 0, j, ret = 0;</div>
<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>&#160; </div>
<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160;        val = strchr(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, <span class="charliteral">&#39;=&#39;</span>);</div>
<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160;        <span class="keywordflow">if</span> (!val) {</div>
<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;No &#39;=&#39; character in metadata string %s.\n&quot;</span>,</div>
<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>&#160;                   o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>);</div>
<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>&#160;        }</div>
<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>&#160;        *val++ = 0;</div>
<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>&#160; </div>
<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a119ac6dfc6c391d979611c6878497fb8">parse_meta_type</a>(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">specifier</a>, &amp;type, &amp;index, &amp;stream_spec);</div>
<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>&#160;        <span class="keywordflow">if</span> (type == <span class="charliteral">&#39;s&#39;</span>) {</div>
<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>&#160;            <span class="keywordflow">for</span> (j = 0; j &lt; oc-&gt;nb_streams; j++) {</div>
<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>&#160;                ost = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a> - oc-&gt;nb_streams + j];</div>
<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>&#160;                <span class="keywordflow">if</span> ((ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a>(oc, oc-&gt;streams[j], stream_spec)) &gt; 0) {</div>
<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>&#160;                    <span class="keywordflow">if</span> (!strcmp(o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, <span class="stringliteral">&quot;rotate&quot;</span>)) {</div>
<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>&#160;                        <span class="keywordtype">char</span> *tail;</div>
<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>&#160;                        <span class="keywordtype">double</span> theta = av_strtod(val, &amp;tail);</div>
<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>&#160;                        <span class="keywordflow">if</span> (!*tail) {</div>
<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160;                            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#ae27ba6d2051d62f704c5693133b58b11">rotate_overridden</a> = 1;</div>
<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160;                            ost-&gt;<a class="code" href="../../db/dde/struct_output_stream.html#a3752b3243f9a089543bc1dc67b3de3fc">rotate_override_value</a> = theta;</div>
<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160;                        }</div>
<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160;                        av_dict_set(&amp;oc-&gt;streams[j]-&gt;metadata, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, *val ? val : NULL, 0);</div>
<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>&#160;                    }</div>
<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160;            }</div>
<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160;        }</div>
<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>&#160;            <span class="keywordflow">switch</span> (type) {</div>
<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>&#160;            <span class="keywordflow">case</span> <span class="charliteral">&#39;g&#39;</span>:</div>
<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160;                m = &amp;oc-&gt;metadata;</div>
<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160;            <span class="keywordflow">case</span> <span class="charliteral">&#39;c&#39;</span>:</div>
<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160;                <span class="keywordflow">if</span> (index &lt; 0 || index &gt;= oc-&gt;nb_chapters) {</div>
<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid chapter index %d in metadata specifier.\n&quot;</span>, index);</div>
<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160;                }</div>
<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>&#160;                m = &amp;oc-&gt;chapters[index]-&gt;metadata;</div>
<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>&#160;            <span class="keywordflow">case</span> <span class="charliteral">&#39;p&#39;</span>:</div>
<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>&#160;                <span class="keywordflow">if</span> (index &lt; 0 || index &gt;= oc-&gt;nb_programs) {</div>
<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>&#160;                    av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid program index %d in metadata specifier.\n&quot;</span>, index);</div>
<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>&#160;                    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>&#160;                }</div>
<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>&#160;                m = &amp;oc-&gt;programs[index]-&gt;metadata;</div>
<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>&#160;                av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Invalid metadata specifier %s.\n&quot;</span>, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">specifier</a>);</div>
<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>&#160;                <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>&#160;            }</div>
<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>&#160;            av_dict_set(m, o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">metadata</a>[i].<a class="code" href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">u</a>.<a class="code" href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">str</a>, *val ? val : NULL, 0);</div>
<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>&#160;        }</div>
<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>&#160;    }</div>
<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>&#160; </div>
<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>&#160;}</div>
<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>&#160; </div>
<div class="line"><a name="l02824"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a7b688fe508a8d85961a487d4eb3f3121"> 2824</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7b688fe508a8d85961a487d4eb3f3121">opt_target</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>&#160;{</div>
<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>&#160;    <span class="keyword">const</span> <a class="code" href="../../dc/d1e/struct_option_def.html">OptionDef</a> *options = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>;</div>
<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>&#160;    <span class="keyword">enum</span> { PAL, NTSC, FILM, UNKNOWN } norm = UNKNOWN;</div>
<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> frame_rates[] = { <span class="stringliteral">&quot;25&quot;</span>, <span class="stringliteral">&quot;30000/1001&quot;</span>, <span class="stringliteral">&quot;24000/1001&quot;</span> };</div>
<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>&#160; </div>
<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>&#160;    <span class="keywordflow">if</span> (!strncmp(arg, <span class="stringliteral">&quot;pal-&quot;</span>, 4)) {</div>
<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>&#160;        norm = PAL;</div>
<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>&#160;        arg += 4;</div>
<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strncmp(arg, <span class="stringliteral">&quot;ntsc-&quot;</span>, 5)) {</div>
<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;        norm = NTSC;</div>
<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>&#160;        arg += 5;</div>
<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strncmp(arg, <span class="stringliteral">&quot;film-&quot;</span>, 5)) {</div>
<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>&#160;        norm = FILM;</div>
<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>&#160;        arg += 5;</div>
<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>&#160;        <span class="comment">/* Try to determine PAL/NTSC by peeking in the input files */</span></div>
<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>) {</div>
<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>&#160;            <span class="keywordtype">int</span> i, j;</div>
<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>&#160;            <span class="keywordflow">for</span> (j = 0; j &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a>; j++) {</div>
<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>&#160;                <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[j]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">nb_streams</a>; i++) {</div>
<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>&#160;                    AVStream *st = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a>[j]-&gt;<a class="code" href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">ctx</a>-&gt;streams[i];</div>
<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>&#160;                    int64_t fr;</div>
<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>&#160;                    <span class="keywordflow">if</span> (st-&gt;codecpar-&gt;codec_type != AVMEDIA_TYPE_VIDEO)</div>
<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>&#160;                        <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>&#160;                    fr = st-&gt;time_base.den * 1000LL / st-&gt;time_base.num;</div>
<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>&#160;                    <span class="keywordflow">if</span> (fr == 25000) {</div>
<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>&#160;                        norm = PAL;</div>
<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160;                    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((fr == 29970) || (fr == 23976)) {</div>
<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160;                        norm = NTSC;</div>
<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>&#160;                    }</div>
<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>&#160;                }</div>
<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>&#160;                <span class="keywordflow">if</span> (norm != UNKNOWN)</div>
<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>&#160;            }</div>
<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>&#160;        }</div>
<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>&#160;        <span class="keywordflow">if</span> (norm != UNKNOWN)</div>
<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>&#160;            av_log(NULL, AV_LOG_INFO, <span class="stringliteral">&quot;Assuming %s for target.\n&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;PAL&quot;</span> : <span class="stringliteral">&quot;NTSC&quot;</span>);</div>
<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>&#160;    }</div>
<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>&#160; </div>
<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>&#160;    <span class="keywordflow">if</span> (norm == UNKNOWN) {</div>
<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Could not determine norm (PAL/NTSC/NTSC-Film) for target.\n&quot;</span>);</div>
<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Please prefix target with \&quot;pal-\&quot;, \&quot;ntsc-\&quot; or \&quot;film-\&quot;,\n&quot;</span>);</div>
<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;or set a framerate with \&quot;-r xxx\&quot;.\n&quot;</span>);</div>
<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>&#160;    }</div>
<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>&#160; </div>
<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>&#160;    <span class="keywordflow">if</span> (!strcmp(arg, <span class="stringliteral">&quot;vcd&quot;</span>)) {</div>
<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a>(o, <span class="stringliteral">&quot;c:v&quot;</span>, <span class="stringliteral">&quot;mpeg1video&quot;</span>);</div>
<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a>(o, <span class="stringliteral">&quot;c:a&quot;</span>, <span class="stringliteral">&quot;mp2&quot;</span>);</div>
<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;vcd&quot;</span>, options);</div>
<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>&#160; </div>
<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;s&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;352x288&quot;</span> : <span class="stringliteral">&quot;352x240&quot;</span>, options);</div>
<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;r&quot;</span>, frame_rates[norm], options);</div>
<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;g&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;15&quot;</span> : <span class="stringliteral">&quot;18&quot;</span>);</div>
<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>&#160; </div>
<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:v&quot;</span>, <span class="stringliteral">&quot;1150000&quot;</span>);</div>
<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;maxrate:v&quot;</span>, <span class="stringliteral">&quot;1150000&quot;</span>);</div>
<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;minrate:v&quot;</span>, <span class="stringliteral">&quot;1150000&quot;</span>);</div>
<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;bufsize:v&quot;</span>, <span class="stringliteral">&quot;327680&quot;</span>); <span class="comment">// 40*1024*8;</span></div>
<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span>&#160; </div>
<div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:a&quot;</span>, <span class="stringliteral">&quot;224000&quot;</span>);</div>
<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ar&quot;</span>, <span class="stringliteral">&quot;44100&quot;</span>, options);</div>
<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ac&quot;</span>, <span class="stringliteral">&quot;2&quot;</span>, options);</div>
<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>&#160; </div>
<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;packetsize&quot;</span>, <span class="stringliteral">&quot;2324&quot;</span>);</div>
<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;muxrate&quot;</span>, <span class="stringliteral">&quot;1411200&quot;</span>); <span class="comment">// 2352 * 75 * 8;</span></div>
<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>&#160; </div>
<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>&#160;        <span class="comment">/* We have to offset the PTS, so that it is consistent with the SCR.</span></div>
<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>&#160;<span class="comment">           SCR starts at 36000, but the first two packs contain only padding</span></div>
<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>&#160;<span class="comment">           and the first pack from the other stream, respectively, may also have</span></div>
<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>&#160;<span class="comment">           been written before.</span></div>
<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>&#160;<span class="comment">           So the real data starts at SCR 36000+3*1200. */</span></div>
<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>&#160;        o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#a07d718f49941fb773665ac6f0657bab8">mux_preload</a> = (36000 + 3 * 1200) / 90000.0; <span class="comment">// 0.44</span></div>
<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(arg, <span class="stringliteral">&quot;svcd&quot;</span>)) {</div>
<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>&#160; </div>
<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a>(o, <span class="stringliteral">&quot;c:v&quot;</span>, <span class="stringliteral">&quot;mpeg2video&quot;</span>);</div>
<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a>(o, <span class="stringliteral">&quot;c:a&quot;</span>, <span class="stringliteral">&quot;mp2&quot;</span>);</div>
<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;svcd&quot;</span>, options);</div>
<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>&#160; </div>
<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;s&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;480x576&quot;</span> : <span class="stringliteral">&quot;480x480&quot;</span>, options);</div>
<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;r&quot;</span>, frame_rates[norm], options);</div>
<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;pix_fmt&quot;</span>, <span class="stringliteral">&quot;yuv420p&quot;</span>, options);</div>
<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;g&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;15&quot;</span> : <span class="stringliteral">&quot;18&quot;</span>);</div>
<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>&#160; </div>
<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:v&quot;</span>, <span class="stringliteral">&quot;2040000&quot;</span>);</div>
<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;maxrate:v&quot;</span>, <span class="stringliteral">&quot;2516000&quot;</span>);</div>
<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;minrate:v&quot;</span>, <span class="stringliteral">&quot;0&quot;</span>); <span class="comment">// 1145000;</span></div>
<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;bufsize:v&quot;</span>, <span class="stringliteral">&quot;1835008&quot;</span>); <span class="comment">// 224*1024*8;</span></div>
<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;scan_offset&quot;</span>, <span class="stringliteral">&quot;1&quot;</span>);</div>
<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>&#160; </div>
<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:a&quot;</span>, <span class="stringliteral">&quot;224000&quot;</span>);</div>
<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ar&quot;</span>, <span class="stringliteral">&quot;44100&quot;</span>, options);</div>
<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>&#160; </div>
<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;packetsize&quot;</span>, <span class="stringliteral">&quot;2324&quot;</span>);</div>
<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span>&#160; </div>
<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(arg, <span class="stringliteral">&quot;dvd&quot;</span>)) {</div>
<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>&#160; </div>
<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a>(o, <span class="stringliteral">&quot;c:v&quot;</span>, <span class="stringliteral">&quot;mpeg2video&quot;</span>);</div>
<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a>(o, <span class="stringliteral">&quot;c:a&quot;</span>, <span class="stringliteral">&quot;ac3&quot;</span>);</div>
<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;dvd&quot;</span>, options);</div>
<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>&#160; </div>
<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;s&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;720x576&quot;</span> : <span class="stringliteral">&quot;720x480&quot;</span>, options);</div>
<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;r&quot;</span>, frame_rates[norm], options);</div>
<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;pix_fmt&quot;</span>, <span class="stringliteral">&quot;yuv420p&quot;</span>, options);</div>
<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;g&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;15&quot;</span> : <span class="stringliteral">&quot;18&quot;</span>);</div>
<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>&#160; </div>
<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:v&quot;</span>, <span class="stringliteral">&quot;6000000&quot;</span>);</div>
<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;maxrate:v&quot;</span>, <span class="stringliteral">&quot;9000000&quot;</span>);</div>
<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;minrate:v&quot;</span>, <span class="stringliteral">&quot;0&quot;</span>); <span class="comment">// 1500000;</span></div>
<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;bufsize:v&quot;</span>, <span class="stringliteral">&quot;1835008&quot;</span>); <span class="comment">// 224*1024*8;</span></div>
<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>&#160; </div>
<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;packetsize&quot;</span>, <span class="stringliteral">&quot;2048&quot;</span>);  <span class="comment">// from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this is also the size of one pack.</span></div>
<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;muxrate&quot;</span>, <span class="stringliteral">&quot;10080000&quot;</span>); <span class="comment">// from mplex project: data_rate = 1260000. mux_rate = data_rate * 8</span></div>
<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>&#160; </div>
<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, <span class="stringliteral">&quot;b:a&quot;</span>, <span class="stringliteral">&quot;448000&quot;</span>);</div>
<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ar&quot;</span>, <span class="stringliteral">&quot;48000&quot;</span>, options);</div>
<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>&#160; </div>
<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strncmp(arg, <span class="stringliteral">&quot;dv&quot;</span>, 2)) {</div>
<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160; </div>
<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;dv&quot;</span>, options);</div>
<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160; </div>
<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;s&quot;</span>, norm == PAL ? <span class="stringliteral">&quot;720x576&quot;</span> : <span class="stringliteral">&quot;720x480&quot;</span>, options);</div>
<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;pix_fmt&quot;</span>, !strncmp(arg, <span class="stringliteral">&quot;dv50&quot;</span>, 4) ? <span class="stringliteral">&quot;yuv422p&quot;</span> :</div>
<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>&#160;                          norm == PAL ? <span class="stringliteral">&quot;yuv420p&quot;</span> : <span class="stringliteral">&quot;yuv411p&quot;</span>, options);</div>
<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;r&quot;</span>, frame_rates[norm], options);</div>
<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>&#160; </div>
<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ar&quot;</span>, <span class="stringliteral">&quot;48000&quot;</span>, options);</div>
<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;ac&quot;</span>, <span class="stringliteral">&quot;2&quot;</span>, options);</div>
<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>&#160; </div>
<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Unknown target: %s\n&quot;</span>, arg);</div>
<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>&#160;    }</div>
<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>&#160; </div>
<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>&#160;    av_dict_copy(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>,  <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a>, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>&#160;    av_dict_copy(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a>, AV_DICT_DONT_OVERWRITE);</div>
<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>&#160; </div>
<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>&#160;}</div>
<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>&#160; </div>
<div class="line"><a name="l02968"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a1050d5bf2b6ea7a93a749a25a8a7db17"> 2968</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1050d5bf2b6ea7a93a749a25a8a7db17">opt_vstats_file</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>&#160;{</div>
<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>&#160;    av_free (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a767f4348992f8faeaf443a3b0292d87a">vstats_filename</a>);</div>
<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a767f4348992f8faeaf443a3b0292d87a">vstats_filename</a> = av_strdup (arg);</div>
<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>&#160;}</div>
<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>&#160; </div>
<div class="line"><a name="l02975"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a8f725a766755b848221895b283f206a8"> 2975</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f725a766755b848221895b283f206a8">opt_vstats</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>&#160;{</div>
<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>&#160;    <span class="keywordtype">char</span> filename[40];</div>
<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>&#160;    time_t today2 = time(NULL);</div>
<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>&#160;    <span class="keyword">struct </span>tm *today = localtime(&amp;today2);</div>
<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>&#160; </div>
<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>&#160;    <span class="keywordflow">if</span> (!today) { <span class="comment">// maybe tomorrow</span></div>
<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Unable to get current time: %s\n&quot;</span>, strerror(errno));</div>
<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>&#160;    }</div>
<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>&#160; </div>
<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>&#160;    snprintf(filename, <span class="keyword">sizeof</span>(filename), <span class="stringliteral">&quot;vstats_%02d%02d%02d.log&quot;</span>, today-&gt;tm_hour, today-&gt;tm_min,</div>
<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>&#160;             today-&gt;tm_sec);</div>
<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1050d5bf2b6ea7a93a749a25a8a7db17">opt_vstats_file</a>(NULL, opt, filename);</div>
<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>&#160;}</div>
<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>&#160; </div>
<div class="line"><a name="l02991"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a980e27c6f6226db3cd1e0fff390df29b"> 2991</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a980e27c6f6226db3cd1e0fff390df29b">opt_video_frames</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>&#160;{</div>
<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;frames:v&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>&#160;}</div>
<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>&#160; </div>
<div class="line"><a name="l02997"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a7764402c86633630b61750779ce41c2e"> 2997</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7764402c86633630b61750779ce41c2e">opt_audio_frames</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>&#160;{</div>
<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;frames:a&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>&#160;}</div>
<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>&#160; </div>
<div class="line"><a name="l03003"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a65414dc020391d0ec9ed39ad9920dd0f"> 3003</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a65414dc020391d0ec9ed39ad9920dd0f">opt_data_frames</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>&#160;{</div>
<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;frames:d&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>&#160;}</div>
<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>&#160; </div>
<div class="line"><a name="l03009"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#adb46b97d7f835a8aab51ffdc8287ae8a"> 3009</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adb46b97d7f835a8aab51ffdc8287ae8a">opt_default_new</a>(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>&#160;{</div>
<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>&#160;    AVDictionary *cbak = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a>;</div>
<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>&#160;    AVDictionary *fbak = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a>;</div>
<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a> = NULL;</div>
<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a> = NULL;</div>
<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>&#160; </div>
<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a>(NULL, opt, arg);</div>
<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>&#160; </div>
<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>&#160;    av_dict_copy(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a> , <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a>, 0);</div>
<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>&#160;    av_dict_copy(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">format_opts</a>, <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a>, 0);</div>
<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>&#160;    av_dict_free(&amp;<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a>);</div>
<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>&#160;    av_dict_free(&amp;<a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a>);</div>
<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a> = cbak;</div>
<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a> = fbak;</div>
<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>&#160; </div>
<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>&#160;}</div>
<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>&#160; </div>
<div class="line"><a name="l03029"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#abaf811ecede8a95cd17d4cedd6247ea7"> 3029</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#abaf811ecede8a95cd17d4cedd6247ea7">opt_preset</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>&#160;{</div>
<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>&#160;    FILE *f=NULL;</div>
<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>&#160;    <span class="keywordtype">char</span> filename[1000], line[1000], tmp_line[1000];</div>
<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *codec_name = NULL;</div>
<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>&#160; </div>
<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>&#160;    tmp_line[0] = *opt;</div>
<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>&#160;    tmp_line[1] = 0;</div>
<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a>(codec_names, str, codec_name, NULL, tmp_line);</div>
<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>&#160; </div>
<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>&#160;    <span class="keywordflow">if</span> (!(f = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a4ba31d95fc6fc14e603fa86e7a007409">get_preset_file</a>(filename, <span class="keyword">sizeof</span>(filename), arg, *opt == <span class="charliteral">&#39;f&#39;</span>, codec_name))) {</div>
<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>&#160;        <span class="keywordflow">if</span>(!strncmp(arg, <span class="stringliteral">&quot;libx264-lossless&quot;</span>, strlen(<span class="stringliteral">&quot;libx264-lossless&quot;</span>))){</div>
<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Please use -preset &lt;speed&gt; -qp 0\n&quot;</span>);</div>
<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>&#160;        }<span class="keywordflow">else</span></div>
<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;File for preset &#39;%s&#39; not found\n&quot;</span>, arg);</div>
<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>&#160;    }</div>
<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>&#160; </div>
<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>&#160;    <span class="keywordflow">while</span> (fgets(line, <span class="keyword">sizeof</span>(line), f)) {</div>
<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>&#160;        <span class="keywordtype">char</span> *key = tmp_line, *value, *endptr;</div>
<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>&#160; </div>
<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>&#160;        <span class="keywordflow">if</span> (strcspn(line, <span class="stringliteral">&quot;#\n\r&quot;</span>) == 0)</div>
<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>&#160;        av_strlcpy(tmp_line, line, <span class="keyword">sizeof</span>(tmp_line));</div>
<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>&#160;        <span class="keywordflow">if</span> (!av_strtok(key,   <span class="stringliteral">&quot;=&quot;</span>,    &amp;value) ||</div>
<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>&#160;            !av_strtok(value, <span class="stringliteral">&quot;\r\n&quot;</span>, &amp;endptr)) {</div>
<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;%s: Invalid syntax: &#39;%s&#39;\n&quot;</span>, filename, line);</div>
<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>&#160;        }</div>
<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>&#160;        av_log(NULL, AV_LOG_DEBUG, <span class="stringliteral">&quot;ffpreset[%s]: set &#39;%s&#39; = &#39;%s&#39;\n&quot;</span>, filename, key, value);</div>
<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>&#160; </div>
<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>&#160;        <span class="keywordflow">if</span>      (!strcmp(key, <span class="stringliteral">&quot;acodec&quot;</span>)) <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a>   (o, key, value);</div>
<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;vcodec&quot;</span>)) <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a>   (o, key, value);</div>
<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;scodec&quot;</span>)) <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4a588b5f7cb9e583ca84529ae89b0382">opt_subtitle_codec</a>(o, key, value);</div>
<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(key, <span class="stringliteral">&quot;dcodec&quot;</span>)) <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a190b363d38befc8e1dbfc4f68992bffa">opt_data_codec</a>    (o, key, value);</div>
<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adb46b97d7f835a8aab51ffdc8287ae8a">opt_default_new</a>(o, key, value) &lt; 0) {</div>
<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>&#160;            av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;%s: Invalid option or argument: &#39;%s&#39;, parsed as &#39;%s&#39; = &#39;%s&#39;\n&quot;</span>,</div>
<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span>&#160;                   filename, line, key, value);</div>
<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>&#160;            <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a>(1);</div>
<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>&#160;        }</div>
<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>&#160;    }</div>
<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>&#160; </div>
<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>&#160;    fclose(f);</div>
<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>&#160; </div>
<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>&#160;}</div>
<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>&#160; </div>
<div class="line"><a name="l03077"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ac4901465fa02f303211b5bd221b312ac"> 3077</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac4901465fa02f303211b5bd221b312ac">opt_old2new</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>&#160;{</div>
<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>&#160;    <span class="keywordtype">char</span> *s = av_asprintf(<span class="stringliteral">&quot;%s:%c&quot;</span>, opt + 1, *opt);</div>
<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>&#160;    <span class="keywordflow">if</span> (!s)</div>
<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, s, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>&#160;    av_free(s);</div>
<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>&#160;}</div>
<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>&#160; </div>
<div class="line"><a name="l03089"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#ad5081d8deb9d504a42ce8548068c2096"> 3089</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad5081d8deb9d504a42ce8548068c2096">opt_bitrate</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>&#160;{</div>
<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>&#160; </div>
<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>&#160;    <span class="keywordflow">if</span>(!strcmp(opt, <span class="stringliteral">&quot;ab&quot;</span>)){</div>
<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, <span class="stringliteral">&quot;b:a&quot;</span>, arg, 0);</div>
<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(!strcmp(opt, <span class="stringliteral">&quot;b&quot;</span>)){</div>
<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Please use -b:a or -b:v, -b is ambiguous\n&quot;</span>);</div>
<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, <span class="stringliteral">&quot;b:v&quot;</span>, arg, 0);</div>
<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>&#160;    }</div>
<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>&#160;    av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, opt, arg, 0);</div>
<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>&#160;}</div>
<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>&#160; </div>
<div class="line"><a name="l03105"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a1f383de2e1d88e44f8ad03e24c1c2300"> 3105</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1f383de2e1d88e44f8ad03e24c1c2300">opt_qscale</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>&#160;{</div>
<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>&#160;    <a class="code" href="../../dc/d1e/struct_option_def.html">OptionDef</a> *options = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>;</div>
<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>&#160;    <span class="keywordtype">char</span> *s;</div>
<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>&#160;    <span class="keywordflow">if</span>(!strcmp(opt, <span class="stringliteral">&quot;qscale&quot;</span>)){</div>
<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Please use -q:a or -q:v, -qscale is ambiguous\n&quot;</span>);</div>
<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;q:v&quot;</span>, arg, options);</div>
<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>&#160;    }</div>
<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>&#160;    s = av_asprintf(<span class="stringliteral">&quot;q%s&quot;</span>, opt + 6);</div>
<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>&#160;    <span class="keywordflow">if</span> (!s)</div>
<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, s, arg, options);</div>
<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>&#160;    av_free(s);</div>
<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span>&#160;}</div>
<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>&#160; </div>
<div class="line"><a name="l03123"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a54e869e9bf4cd94ebe110ee0c8e407bb"> 3123</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a54e869e9bf4cd94ebe110ee0c8e407bb">opt_profile</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>&#160;{</div>
<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03126"></a><span class="lineno"> 3126</span>&#160;    <span class="keywordflow">if</span>(!strcmp(opt, <span class="stringliteral">&quot;profile&quot;</span>)){</div>
<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>&#160;        av_log(NULL, AV_LOG_WARNING, <span class="stringliteral">&quot;Please use -profile:a or -profile:v, -profile is ambiguous\n&quot;</span>);</div>
<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>&#160;        av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, <span class="stringliteral">&quot;profile:v&quot;</span>, arg, 0);</div>
<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>&#160;    }</div>
<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>&#160;    av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, opt, arg, 0);</div>
<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>&#160;}</div>
<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>&#160; </div>
<div class="line"><a name="l03135"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a67b88ce0f88b9b220671a44632d129a4"> 3135</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a67b88ce0f88b9b220671a44632d129a4">opt_video_filters</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>&#160;{</div>
<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;filter:v&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>&#160;}</div>
<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>&#160; </div>
<div class="line"><a name="l03141"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a9ee898e4ccb3070653e59a5615c4c5aa"> 3141</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9ee898e4ccb3070653e59a5615c4c5aa">opt_audio_filters</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>&#160;{</div>
<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;filter:a&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>&#160;}</div>
<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>&#160; </div>
<div class="line"><a name="l03147"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a2b0b7b6ba4d8f6bec8f9bb410606787a"> 3147</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b0b7b6ba4d8f6bec8f9bb410606787a">opt_vsync</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span>&#160;{</div>
<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>&#160;    <span class="keywordflow">if</span>      (!av_strcasecmp(arg, <span class="stringliteral">&quot;cfr&quot;</span>))         <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a55f456dcb9eef4dae3472d86039ab92e">VSYNC_CFR</a>;</div>
<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!av_strcasecmp(arg, <span class="stringliteral">&quot;vfr&quot;</span>))         <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ae4d5327ac60265779027253e0f6ca4dc">VSYNC_VFR</a>;</div>
<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!av_strcasecmp(arg, <span class="stringliteral">&quot;passthrough&quot;</span>)) <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ad997d298e58562365e7011c3d2fdd811">VSYNC_PASSTHROUGH</a>;</div>
<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!av_strcasecmp(arg, <span class="stringliteral">&quot;drop&quot;</span>))        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a16386b3f2344042c2a72b9143f09fcfa">VSYNC_DROP</a>;</div>
<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>&#160; </div>
<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> == <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a7a29c56248090da0d5fb37a87b9a695d">VSYNC_AUTO</a>)</div>
<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a> = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#aee611299e84dab23d614366f993e96ae">parse_number_or_die</a>(<span class="stringliteral">&quot;vsync&quot;</span>, arg, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a55bdf11c33fc097533cde94b0f64024b">OPT_INT</a>, <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a7a29c56248090da0d5fb37a87b9a695d">VSYNC_AUTO</a>, <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ae4d5327ac60265779027253e0f6ca4dc">VSYNC_VFR</a>);</div>
<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>&#160;}</div>
<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>&#160; </div>
<div class="line"><a name="l03159"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a0ddbb61c6a7dbbe50a723774a342e060"> 3159</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0ddbb61c6a7dbbe50a723774a342e060">opt_timecode</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>&#160;{</div>
<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>&#160;    <span class="keywordtype">char</span> *tcr = av_asprintf(<span class="stringliteral">&quot;timecode=%s&quot;</span>, arg);</div>
<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>&#160;    <span class="keywordflow">if</span> (!tcr)</div>
<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;metadata:g&quot;</span>, tcr, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>&#160;    <span class="keywordflow">if</span> (ret &gt;= 0)</div>
<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>&#160;        ret = av_dict_set(&amp;o-&gt;<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a>-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">codec_opts</a>, <span class="stringliteral">&quot;gop_timecode&quot;</span>, arg, 0);</div>
<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>&#160;    av_free(tcr);</div>
<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>&#160;}</div>
<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>&#160; </div>
<div class="line"><a name="l03173"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a02ab698433dae7a8b706e326a7bd9f8f"> 3173</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02ab698433dae7a8b706e326a7bd9f8f">opt_channel_layout</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>&#160;{</div>
<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>&#160;    <span class="keywordtype">char</span> layout_str[32];</div>
<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>&#160;    <span class="keywordtype">char</span> *stream_str;</div>
<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>&#160;    <span class="keywordtype">char</span> *ac_str;</div>
<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>&#160;    <span class="keywordtype">int</span> ret, channels, ac_str_size;</div>
<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>&#160;    uint64_t layout;</div>
<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>&#160; </div>
<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>&#160;    layout = av_get_channel_layout(arg);</div>
<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>&#160;    <span class="keywordflow">if</span> (!layout) {</div>
<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Unknown channel layout: %s\n&quot;</span>, arg);</div>
<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>&#160;    }</div>
<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>&#160;    snprintf(layout_str, <span class="keyword">sizeof</span>(layout_str), <span class="stringliteral">&quot;%&quot;</span>PRIu64, layout);</div>
<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span>&#160;    ret = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#adb46b97d7f835a8aab51ffdc8287ae8a">opt_default_new</a>(o, opt, layout_str);</div>
<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0)</div>
<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>&#160;        <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>&#160; </div>
<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>&#160;    <span class="comment">/* set &#39;ac&#39; option based on channel layout */</span></div>
<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>&#160;    channels = av_get_channel_layout_nb_channels(layout);</div>
<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>&#160;    snprintf(layout_str, <span class="keyword">sizeof</span>(layout_str), <span class="stringliteral">&quot;%d&quot;</span>, channels);</div>
<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>&#160;    stream_str = strchr(opt, <span class="charliteral">&#39;:&#39;</span>);</div>
<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>&#160;    ac_str_size = 3 + (stream_str ? strlen(stream_str) : 0);</div>
<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>&#160;    ac_str = av_mallocz(ac_str_size);</div>
<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>&#160;    <span class="keywordflow">if</span> (!ac_str)</div>
<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>&#160;    av_strlcpy(ac_str, <span class="stringliteral">&quot;ac&quot;</span>, 3);</div>
<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>&#160;    <span class="keywordflow">if</span> (stream_str)</div>
<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>&#160;        av_strlcat(ac_str, stream_str, ac_str_size);</div>
<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, ac_str, layout_str, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>&#160;    av_free(ac_str);</div>
<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>&#160; </div>
<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>&#160;}</div>
<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>&#160; </div>
<div class="line"><a name="l03209"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#aa92bf94652218255e5386329ec0edbd5"> 3209</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa92bf94652218255e5386329ec0edbd5">opt_audio_qscale</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>&#160;{</div>
<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>&#160;    <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> *o = optctx;</div>
<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a>(o, <span class="stringliteral">&quot;q:a&quot;</span>, arg, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>);</div>
<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>&#160;}</div>
<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>&#160; </div>
<div class="line"><a name="l03215"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a266b53c47514391446a21cb6d50f099d"> 3215</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a266b53c47514391446a21cb6d50f099d">opt_filter_complex</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>&#160;{</div>
<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a>);</div>
<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>&#160;    <span class="keywordflow">if</span> (!(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1] = av_mallocz(<span class="keyword">sizeof</span>(*<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[0]))))</div>
<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1]-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#a3ec6739834ba482eacc125e05b59b246">index</a>      = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1;</div>
<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1]-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#ad45139bb5ec5c7766be0b216f9c8c2c4">graph_desc</a> = av_strdup(arg);</div>
<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1]-&gt;graph_desc)</div>
<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>&#160; </div>
<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a> = 1;</div>
<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>&#160; </div>
<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>&#160;}</div>
<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>&#160; </div>
<div class="line"><a name="l03230"></a><span class="lineno"><a class="line" href="../../d7/d48/fftools__ffmpeg_8c.html#a23208b7fc9f279c60f006ad45c827146"> 3230</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23208b7fc9f279c60f006ad45c827146">opt_filter_complex_script</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>&#160;{</div>
<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>&#160;    uint8_t *graph_desc = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b7c43b1c753d5dce457b81d54fdad32">fftools_read_file</a>(arg);</div>
<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>&#160;    <span class="keywordflow">if</span> (!graph_desc)</div>
<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>&#160;        <span class="keywordflow">return</span> AVERROR(EINVAL);</div>
<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>&#160; </div>
<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>&#160;    <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a>(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>, <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a>);</div>
<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>&#160;    <span class="keywordflow">if</span> (!(<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1] = av_mallocz(<span class="keyword">sizeof</span>(*<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[0]))))</div>
<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>&#160;        <span class="keywordflow">return</span> AVERROR(ENOMEM);</div>
<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1]-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#a3ec6739834ba482eacc125e05b59b246">index</a>      = <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1;</div>
<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a>[<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a> - 1]-&gt;<a class="code" href="../../d9/de7/struct_filter_graph.html#ad45139bb5ec5c7766be0b216f9c8c2c4">graph_desc</a> = graph_desc;</div>
<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>&#160; </div>
<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a> = 1;</div>
<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>&#160; </div>
<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>&#160;}</div>
<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>&#160; </div>
<div class="line"><a name="l03247"></a><span class="lineno"><a class="line" href="../../d8/d4e/fftools__cmdutils_8h.html#aefe49155ac108fa47eee131a07fd856f"> 3247</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#aefe49155ac108fa47eee131a07fd856f">show_help_default_ffmpeg</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>&#160;{</div>
<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>&#160;    <a class="code" href="../../dc/d1e/struct_option_def.html">OptionDef</a> *options = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>;</div>
<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>&#160;    <span class="comment">/* per-file options have at least one of those set */</span></div>
<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> per_file = <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a125b062e1ed2e8d929ab67f4721aa463">OPT_SPEC</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#af8d2573bae8637d92cfb1bd84782e8d5">OPT_OFFSET</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a2cb4d9f4b617e04d8b68fc881fdbb958">OPT_PERFILE</a>;</div>
<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>&#160;    <span class="keywordtype">int</span> show_advanced = 0, show_avoptions = 0;</div>
<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>&#160; </div>
<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>&#160;    <span class="keywordflow">if</span> (opt &amp;&amp; *opt) {</div>
<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>&#160;        <span class="keywordflow">if</span> (!strcmp(opt, <span class="stringliteral">&quot;long&quot;</span>))</div>
<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>&#160;            show_advanced = 1;</div>
<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(opt, <span class="stringliteral">&quot;full&quot;</span>))</div>
<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>&#160;            show_advanced = show_avoptions = 1;</div>
<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Unknown help option &#39;%s&#39;.\n&quot;</span>, opt);</div>
<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>&#160;    }</div>
<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>&#160; </div>
<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>&#160;    <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ca4ba3ead2e600e7a6bada7396a5e4d">show_usage</a>();</div>
<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>&#160; </div>
<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>&#160;    av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;Getting help:\n&quot;</span></div>
<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>&#160;           <span class="stringliteral">&quot;    -h      -- print basic options\n&quot;</span></div>
<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>&#160;           <span class="stringliteral">&quot;    -h long -- print more options\n&quot;</span></div>
<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>&#160;           <span class="stringliteral">&quot;    -h full -- print all options (including all format and codec specific options, very long)\n&quot;</span></div>
<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>&#160;           <span class="stringliteral">&quot;    -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf/protocol\n&quot;</span></div>
<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>&#160;           <span class="stringliteral">&quot;    See man %s for detailed description of the options.\n&quot;</span></div>
<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>&#160;           <span class="stringliteral">&quot;\n&quot;</span>, <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a6afce516a5adaeabd7087b767bab5886">program_name</a>);</div>
<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>&#160; </div>
<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Print help / information / capabilities:&quot;</span>,</div>
<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ac6310b4c2290bc63f127bcd3faa117e6">OPT_EXIT</a>, 0, 0);</div>
<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>&#160; </div>
<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Global options (affect whole program &quot;</span></div>
<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>&#160;                      <span class="stringliteral">&quot;instead of just one file):&quot;</span>,</div>
<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>&#160;                      0, per_file | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ac6310b4c2290bc63f127bcd3faa117e6">OPT_EXIT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a>, 0);</div>
<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>&#160;    <span class="keywordflow">if</span> (show_advanced)</div>
<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Advanced global options:&quot;</span>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a>,</div>
<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>&#160;                          per_file | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ac6310b4c2290bc63f127bcd3faa117e6">OPT_EXIT</a>, 0);</div>
<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>&#160; </div>
<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Per-file main options:&quot;</span>, 0,</div>
<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab2f01b015c63102de072d1b04cb54907">OPT_SUBTITLE</a> |</div>
<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ac6310b4c2290bc63f127bcd3faa117e6">OPT_EXIT</a>, per_file);</div>
<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>&#160;    <span class="keywordflow">if</span> (show_advanced)</div>
<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Advanced per-file options:&quot;</span>,</div>
<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>&#160;                          <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab2f01b015c63102de072d1b04cb54907">OPT_SUBTITLE</a>, per_file);</div>
<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>&#160; </div>
<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Video options:&quot;</span>,</div>
<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a>, 0);</div>
<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>&#160;    <span class="keywordflow">if</span> (show_advanced)</div>
<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Advanced Video options:&quot;</span>,</div>
<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>&#160;                          <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a>, 0);</div>
<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>&#160; </div>
<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Audio options:&quot;</span>,</div>
<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a>, 0);</div>
<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>&#160;    <span class="keywordflow">if</span> (show_advanced)</div>
<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Advanced Audio options:&quot;</span>,</div>
<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>&#160;                          <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a> | <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a>, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a>, 0);</div>
<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a>(options, <span class="stringliteral">&quot;Subtitle options:&quot;</span>,</div>
<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>&#160;                      <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ab2f01b015c63102de072d1b04cb54907">OPT_SUBTITLE</a>, 0, 0);</div>
<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>&#160;    av_log(NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a>, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>&#160; </div>
<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>&#160;    <span class="keywordflow">if</span> (show_avoptions) {</div>
<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>&#160;        <span class="keywordtype">int</span> flags = AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_ENCODING_PARAM;</div>
<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(avcodec_get_class(), flags);</div>
<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(avformat_get_class(), flags);</div>
<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>&#160;<span class="preprocessor">#if CONFIG_SWSCALE</span></div>
<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(sws_get_class(), flags);</div>
<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>&#160;<span class="preprocessor">#if CONFIG_SWRESAMPLE</span></div>
<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(swr_get_class(), AV_OPT_FLAG_AUDIO_PARAM);</div>
<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(avfilter_get_class(), AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM);</div>
<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>&#160;        <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a>(av_bsf_get_class(), AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_BSF_PARAM);</div>
<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>&#160;    }</div>
<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>&#160;}</div>
<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>&#160; </div>
<div class="line"><a name="l03320"></a><span class="lineno"><a class="line" href="../../d7/db3/fftools__ffmpeg_8h.html#a5ca4ba3ead2e600e7a6bada7396a5e4d"> 3320</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ca4ba3ead2e600e7a6bada7396a5e4d">show_usage</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>&#160;{</div>
<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>&#160;    av_log(NULL, AV_LOG_INFO, <span class="stringliteral">&quot;Hyper fast Audio and Video encoder\n&quot;</span>);</div>
<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>&#160;    av_log(NULL, AV_LOG_INFO, <span class="stringliteral">&quot;usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n&quot;</span>, <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a6afce516a5adaeabd7087b767bab5886">program_name</a>);</div>
<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>&#160;    av_log(NULL, AV_LOG_INFO, <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>&#160;}</div>
<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>&#160; </div>
<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>&#160;<span class="keyword">enum</span> OptGroup {</div>
<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>&#160;    GROUP_OUTFILE,</div>
<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>&#160;    GROUP_INFILE,</div>
<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>&#160;};</div>
<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>&#160; </div>
<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>&#160;<span class="keyword">const</span> <a class="code" href="../../db/dd7/struct_option_group_def.html">OptionGroupDef</a> groups[] = {</div>
<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>&#160;    [GROUP_OUTFILE] = { <span class="stringliteral">&quot;output url&quot;</span>,  NULL, <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#ac8131c70a1e8339c3574c9a08da81d1b">OPT_OUTPUT</a> },</div>
<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>&#160;    [GROUP_INFILE]  = { <span class="stringliteral">&quot;input url&quot;</span>,   <span class="stringliteral">&quot;i&quot;</span>,  <a class="code" href="../../d8/d4e/fftools__cmdutils_8h.html#a70561ef40bba827afd07234175c07d03">OPT_INPUT</a> },</div>
<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>&#160;};</div>
<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>&#160; </div>
<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a94b7523ab981f616ed14978d06d70ac9">open_files</a>(<a class="code" href="../../d7/d4f/struct_option_group_list.html">OptionGroupList</a> *l, <span class="keyword">const</span> <span class="keywordtype">char</span> *inout,</div>
<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>&#160;                      <span class="keywordtype">int</span> (*open_file)(<a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a>*, <span class="keyword">const</span> <span class="keywordtype">char</span>*))</div>
<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>&#160;{</div>
<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>&#160;    <span class="keywordtype">int</span> i, ret;</div>
<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>&#160; </div>
<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; l-&gt;<a class="code" href="../../d7/d4f/struct_option_group_list.html#a6ca02ccb04349c3759d6cdf4ef335202">nb_groups</a>; i++) {</div>
<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>&#160;        <a class="code" href="../../d6/d69/struct_option_group.html">OptionGroup</a> *g = &amp;l-&gt;<a class="code" href="../../d7/d4f/struct_option_group_list.html#a825edf37567a1a7b5ccf81ae6b54827a">groups</a>[i];</div>
<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>&#160;        <a class="code" href="../../df/d77/struct_options_context.html">OptionsContext</a> o;</div>
<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>&#160; </div>
<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae65e836132b235a3c7dbc7bd00b35d54">init_options</a>(&amp;o);</div>
<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>&#160;        o.<a class="code" href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">g</a> = g;</div>
<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>&#160; </div>
<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>&#160;        ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#ae0e1bd04fd160c44d7e36623314380e4">parse_optgroup</a>(&amp;o, g);</div>
<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error parsing options for %s file &quot;</span></div>
<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>&#160;                   <span class="stringliteral">&quot;%s.\n&quot;</span>, inout, g-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#ade02874f0cc6716575a7d02e3c38ac95">arg</a>);</div>
<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>&#160;            <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e475f4040b6a0cb4236447d9263e00">uninit_options</a>(&amp;o);</div>
<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>&#160;            <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>&#160;        }</div>
<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span>&#160; </div>
<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>&#160;        av_log(NULL, AV_LOG_DEBUG, <span class="stringliteral">&quot;Opening an %s file: %s.\n&quot;</span>, inout, g-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#ade02874f0cc6716575a7d02e3c38ac95">arg</a>);</div>
<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>&#160;        ret = open_file(&amp;o, g-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#ade02874f0cc6716575a7d02e3c38ac95">arg</a>);</div>
<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>&#160;        <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e475f4040b6a0cb4236447d9263e00">uninit_options</a>(&amp;o);</div>
<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>&#160;        <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>&#160;            av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Error opening %s file %s.\n&quot;</span>,</div>
<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>&#160;                   inout, g-&gt;<a class="code" href="../../d6/d69/struct_option_group.html#ade02874f0cc6716575a7d02e3c38ac95">arg</a>);</div>
<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span>&#160;            <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span>&#160;        }</div>
<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>&#160;        av_log(NULL, AV_LOG_DEBUG, <span class="stringliteral">&quot;Successfully opened the file.\n&quot;</span>);</div>
<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>&#160;    }</div>
<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span>&#160; </div>
<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>&#160;}</div>
<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>&#160; </div>
<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#aaaf7c2b3f63972f1f87face8f73cfdd6">ffmpeg_parse_options</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)</div>
<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span>&#160;{</div>
<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>&#160;    <a class="code" href="../../db/db5/struct_option_parse_context.html">OptionParseContext</a> octx;</div>
<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>&#160;    uint8_t error[128];</div>
<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>&#160; </div>
<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>&#160;    memset(&amp;octx, 0, <span class="keyword">sizeof</span>(octx));</div>
<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>&#160; </div>
<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span>&#160;    <span class="comment">/* split the commandline into an internal representation */</span></div>
<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a8dbe23ab7c8099a82806ae9beb9d4306">split_commandline</a>(&amp;octx, argc, argv, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a>, groups,</div>
<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>&#160;                            FF_ARRAY_ELEMS(groups));</div>
<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error splitting the argument list: &quot;</span>);</div>
<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>&#160;        <span class="keywordflow">goto</span> fail;</div>
<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>&#160;    }</div>
<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>&#160; </div>
<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>&#160;    <span class="comment">/* apply global options */</span></div>
<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>&#160;    ret = <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#ae0e1bd04fd160c44d7e36623314380e4">parse_optgroup</a>(NULL, &amp;octx.<a class="code" href="../../db/db5/struct_option_parse_context.html#a1aea6da0c95924fa2d68bae2a404bd32">global_opts</a>);</div>
<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error parsing global options: &quot;</span>);</div>
<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>&#160;        <span class="keywordflow">goto</span> fail;</div>
<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>&#160;    }</div>
<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>&#160; </div>
<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>&#160;    <span class="comment">/* configure terminal and setup signal handlers */</span></div>
<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ac7072b9c76dd77ce9900197d0133b0ba">term_init</a>();</div>
<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span>&#160; </div>
<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>&#160;    <span class="comment">/* open input files */</span></div>
<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>&#160;    ret = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a94b7523ab981f616ed14978d06d70ac9">open_files</a>(&amp;octx.<a class="code" href="../../db/db5/struct_option_parse_context.html#ac495a79844c7d896aadd2d7a3cb95993">groups</a>[GROUP_INFILE], <span class="stringliteral">&quot;input&quot;</span>, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a540336d8019a727fad05b1d6c53e7c15">open_input_file</a>);</div>
<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error opening input files: &quot;</span>);</div>
<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>&#160;        <span class="keywordflow">goto</span> fail;</div>
<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>&#160;    }</div>
<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>&#160; </div>
<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span>&#160;    <span class="comment">/* create the complex filtergraphs */</span></div>
<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span>&#160;    ret = <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ff9fc15df210f9a62862e23e6a18d70">init_complex_filters</a>();</div>
<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error initializing complex filters.\n&quot;</span>);</div>
<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>&#160;        <span class="keywordflow">goto</span> fail;</div>
<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>&#160;    }</div>
<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>&#160; </div>
<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>&#160;    <span class="comment">/* open output files */</span></div>
<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>&#160;    ret = <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#a94b7523ab981f616ed14978d06d70ac9">open_files</a>(&amp;octx.<a class="code" href="../../db/db5/struct_option_parse_context.html#ac495a79844c7d896aadd2d7a3cb95993">groups</a>[GROUP_OUTFILE], <span class="stringliteral">&quot;output&quot;</span>, <a class="code" href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9aaf2d6ff0cf3a0a665445d00365a68">open_output_file</a>);</div>
<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;Error opening output files: &quot;</span>);</div>
<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>&#160;        <span class="keywordflow">goto</span> fail;</div>
<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>&#160;    }</div>
<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>&#160; </div>
<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>&#160;    <a class="code" href="../../d7/db3/fftools__ffmpeg_8h.html#ad7582860b219ad64ec003d5924747d20">check_filter_outputs</a>();</div>
<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>&#160; </div>
<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>&#160;fail:</div>
<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>&#160;    <a class="code" href="../../d7/dcc/fftools__cmdutils_8c.html#a8bcd5cd3628e5864fa94431d8eb08fad">uninit_parse_context</a>(&amp;octx);</div>
<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>&#160;        av_strerror(ret, error, <span class="keyword">sizeof</span>(error));</div>
<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>&#160;        av_log(NULL, AV_LOG_FATAL, <span class="stringliteral">&quot;%s\n&quot;</span>, error);</div>
<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>&#160;    }</div>
<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>&#160;}</div>
<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>&#160; </div>
<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#ae76c7a8880f594c7d0f7df762aac7a89">opt_progress</a>(<span class="keywordtype">void</span> *optctx, <span class="keyword">const</span> <span class="keywordtype">char</span> *opt, <span class="keyword">const</span> <span class="keywordtype">char</span> *arg)</div>
<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>&#160;{</div>
<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>&#160;    AVIOContext *avio = NULL;</div>
<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>&#160; </div>
<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>&#160;    <span class="keywordflow">if</span> (!strcmp(arg, <span class="stringliteral">&quot;-&quot;</span>))</div>
<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>&#160;        arg = <span class="stringliteral">&quot;pipe:&quot;</span>;</div>
<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>&#160;    ret = <a class="code" href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a>(&amp;avio, arg, AVIO_FLAG_WRITE, &amp;<a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a>, NULL);</div>
<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>&#160;    <span class="keywordflow">if</span> (ret &lt; 0) {</div>
<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>&#160;        av_log(NULL, AV_LOG_ERROR, <span class="stringliteral">&quot;Failed to open progress URL \&quot;%s\&quot;: %s\n&quot;</span>,</div>
<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>&#160;               arg, av_err2str(ret));</div>
<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>&#160;        <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>&#160;    }</div>
<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>&#160;    <a class="code" href="../../d7/d48/fftools__ffmpeg_8c.html#a863888d6549c9004ae0aec0bfa0b6994">progress_avio</a> = avio;</div>
<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>&#160;}</div>
<div class="ttc" id="afftools__cmdutils_8c_html_a00fcf983c7dd20dd65568b3ebc20ed44"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a00fcf983c7dd20dd65568b3ebc20ed44">exit_program</a></div><div class="ttdeci">void exit_program(int ret)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00166">fftools_cmdutils.c:166</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a0833f5d4481c5c8c2362b0e5d65af5f3"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a0833f5d4481c5c8c2362b0e5d65af5f3">show_help_children</a></div><div class="ttdeci">void show_help_children(const AVClass *class, int flags)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00239">fftools_cmdutils.c:239</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a08b59fb8c12cbc6db2dd68a367ae49d9"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a08b59fb8c12cbc6db2dd68a367ae49d9">codec_opts</a></div><div class="ttdeci">__thread AVDictionary * codec_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00103">fftools_cmdutils.c:103</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a0f7f4bf6a990541888b7f4ece3456547"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a0f7f4bf6a990541888b7f4ece3456547">parse_option</a></div><div class="ttdeci">int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00384">fftools_cmdutils.c:384</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a13fba56a5674556e879f5733f9b1dd55"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a13fba56a5674556e879f5733f9b1dd55">show_help_options</a></div><div class="ttdeci">void show_help_options(const OptionDef *options, const char *msg, int req_flags, int rej_flags, int alt_flags)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00210">fftools_cmdutils.c:210</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a19714c08385a99d977c6d1bcfed4bca5"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a19714c08385a99d977c6d1bcfed4bca5">format_opts</a></div><div class="ttdeci">__thread AVDictionary * format_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00103">fftools_cmdutils.c:103</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a24c4e9b816e053a3facd267d56daf1ed"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a24c4e9b816e053a3facd267d56daf1ed">opt_default</a></div><div class="ttdeci">int opt_default(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00583">fftools_cmdutils.c:583</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a2911387e778b01a25f0e65eabadf1b7b"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a2911387e778b01a25f0e65eabadf1b7b">print_error</a></div><div class="ttdeci">void print_error(const char *filename, int err)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l01131">fftools_cmdutils.c:1131</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a40394fd5966088e759ce995186773700"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a40394fd5966088e759ce995186773700">read_yesno</a></div><div class="ttdeci">int read_yesno(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02084">fftools_cmdutils.c:2084</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a4ba31d95fc6fc14e603fa86e7a007409"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a4ba31d95fc6fc14e603fa86e7a007409">get_preset_file</a></div><div class="ttdeci">FILE * get_preset_file(char *filename, size_t filename_size, const char *preset_name, int is_path, const char *codec_name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02095">fftools_cmdutils.c:2095</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a5a234190bf25a47320f57fd5ba9cea6a"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a5a234190bf25a47320f57fd5ba9cea6a">grow_array</a></div><div class="ttdeci">void * grow_array(void *array, int elem_size, int *size, int new_size)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02230">fftools_cmdutils.c:2230</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a6246f47f8e3ef9a3e99e5d1457c7d197"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a6246f47f8e3ef9a3e99e5d1457c7d197">setup_find_stream_info_opts</a></div><div class="ttdeci">AVDictionary ** setup_find_stream_info_opts(AVFormatContext *s, AVDictionary *codec_opts)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02210">fftools_cmdutils.c:2210</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a632b71e4b56c5ee8556a407bbecbcef8"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a632b71e4b56c5ee8556a407bbecbcef8">check_stream_specifier</a></div><div class="ttdeci">int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02145">fftools_cmdutils.c:2145</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a6afce516a5adaeabd7087b767bab5886"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a6afce516a5adaeabd7087b767bab5886">program_name</a></div><div class="ttdeci">__thread char * program_name</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00098">fftools_cmdutils.c:98</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a8bcd5cd3628e5864fa94431d8eb08fad"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a8bcd5cd3628e5864fa94431d8eb08fad">uninit_parse_context</a></div><div class="ttdeci">void uninit_parse_context(OptionParseContext *octx)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00765">fftools_cmdutils.c:765</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a8dbe23ab7c8099a82806ae9beb9d4306"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a8dbe23ab7c8099a82806ae9beb9d4306">split_commandline</a></div><div class="ttdeci">int split_commandline(OptionParseContext *octx, int argc, char *argv[], const OptionDef *options, const OptionGroupDef *groups, int nb_groups)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00791">fftools_cmdutils.c:791</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_a98c102ceb9bca5531e6d43f951e9afed"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#a98c102ceb9bca5531e6d43f951e9afed">filter_codec_opts</a></div><div class="ttdeci">AVDictionary * filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id, AVFormatContext *s, AVStream *st, AVCodec *codec)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l02153">fftools_cmdutils.c:2153</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_aa60d6deab0047c29fc1f6602f812774f"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#aa60d6deab0047c29fc1f6602f812774f">parse_time_or_die</a></div><div class="ttdeci">int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00198">fftools_cmdutils.c:198</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_ae0e1bd04fd160c44d7e36623314380e4"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#ae0e1bd04fd160c44d7e36623314380e4">parse_optgroup</a></div><div class="ttdeci">int parse_optgroup(void *optctx, OptionGroup *g)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00452">fftools_cmdutils.c:452</a></div></div>
<div class="ttc" id="afftools__cmdutils_8c_html_aee611299e84dab23d614366f993e96ae"><div class="ttname"><a href="../../d7/dcc/fftools__cmdutils_8c.html#aee611299e84dab23d614366f993e96ae">parse_number_or_die</a></div><div class="ttdeci">double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/dcc/fftools__cmdutils_8c_source.html#l00177">fftools_cmdutils.c:177</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html">fftools_cmdutils.h</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a0654bdd8f429df3aaf1f532968783bbc"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a0654bdd8f429df3aaf1f532968783bbc">OPT_VIDEO</a></div><div class="ttdeci">#define OPT_VIDEO</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00194">fftools_cmdutils.h:194</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a125b062e1ed2e8d929ab67f4721aa463"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a125b062e1ed2e8d929ab67f4721aa463">OPT_SPEC</a></div><div class="ttdeci">#define OPT_SPEC</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00204">fftools_cmdutils.h:204</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a2cb4d9f4b617e04d8b68fc881fdbb958"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a2cb4d9f4b617e04d8b68fc881fdbb958">OPT_PERFILE</a></div><div class="ttdeci">#define OPT_PERFILE</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00202">fftools_cmdutils.h:202</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a55bdf11c33fc097533cde94b0f64024b"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a55bdf11c33fc097533cde94b0f64024b">OPT_INT</a></div><div class="ttdeci">#define OPT_INT</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00196">fftools_cmdutils.h:196</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a632891572be1648c03646028e8bfcac1"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a632891572be1648c03646028e8bfcac1">AV_LOG_STDERR</a></div><div class="ttdeci">#define AV_LOG_STDERR</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00063">fftools_cmdutils.h:63</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a70561ef40bba827afd07234175c07d03"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a70561ef40bba827afd07234175c07d03">OPT_INPUT</a></div><div class="ttdeci">#define OPT_INPUT</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00207">fftools_cmdutils.h:207</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_a91fea349332c05eb78ce3c17202e1dc9"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#a91fea349332c05eb78ce3c17202e1dc9">OPT_STRING</a></div><div class="ttdeci">#define OPT_STRING</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00193">fftools_cmdutils.h:193</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_aa75501e4e249657d5f0df6d7e8645d4f"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#aa75501e4e249657d5f0df6d7e8645d4f">GROW_ARRAY</a></div><div class="ttdeci">#define GROW_ARRAY(array, nb_elems)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00609">fftools_cmdutils.h:609</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_aac1f37101001610dfbf8c6c679b786da"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#aac1f37101001610dfbf8c6c679b786da">OPT_AUDIO</a></div><div class="ttdeci">#define OPT_AUDIO</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00195">fftools_cmdutils.h:195</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_ab2f01b015c63102de072d1b04cb54907"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#ab2f01b015c63102de072d1b04cb54907">OPT_SUBTITLE</a></div><div class="ttdeci">#define OPT_SUBTITLE</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00198">fftools_cmdutils.h:198</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_ab8b1131ea532a43a07296dd04c8c9693"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#ab8b1131ea532a43a07296dd04c8c9693">OPT_EXPERT</a></div><div class="ttdeci">#define OPT_EXPERT</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00192">fftools_cmdutils.h:192</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_ac6310b4c2290bc63f127bcd3faa117e6"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#ac6310b4c2290bc63f127bcd3faa117e6">OPT_EXIT</a></div><div class="ttdeci">#define OPT_EXIT</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00200">fftools_cmdutils.h:200</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_ac8131c70a1e8339c3574c9a08da81d1b"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#ac8131c70a1e8339c3574c9a08da81d1b">OPT_OUTPUT</a></div><div class="ttdeci">#define OPT_OUTPUT</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00208">fftools_cmdutils.h:208</a></div></div>
<div class="ttc" id="afftools__cmdutils_8h_html_af8d2573bae8637d92cfb1bd84782e8d5"><div class="ttname"><a href="../../d8/d4e/fftools__cmdutils_8h.html#af8d2573bae8637d92cfb1bd84782e8d5">OPT_OFFSET</a></div><div class="ttdeci">#define OPT_OFFSET</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00203">fftools_cmdutils.h:203</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a117ba63aa23e378afe665cc6b7c7e043"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a117ba63aa23e378afe665cc6b7c7e043">input_streams</a></div><div class="ttdeci">__thread InputStream ** input_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00179">fftools_ffmpeg.c:179</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a166da4a1a1f99ead2015de10ca32e48f"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a166da4a1a1f99ead2015de10ca32e48f">int_cb</a></div><div class="ttdeci">__thread const AVIOInterruptCB int_cb</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00621">fftools_ffmpeg.c:621</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a19a9c5bb8abc454adeccecdce35135c2"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a19a9c5bb8abc454adeccecdce35135c2">nb_input_streams</a></div><div class="ttdeci">__thread int nb_input_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00180">fftools_ffmpeg.c:180</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a19c97d7729be97389faaf4aaac8c3e88"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a19c97d7729be97389faaf4aaac8c3e88">term_exit</a></div><div class="ttdeci">void term_exit(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00432">fftools_ffmpeg.c:432</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a205ff61315f3766dae7c5e1552de2ccf"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a205ff61315f3766dae7c5e1552de2ccf">output_streams</a></div><div class="ttdeci">__thread OutputStream ** output_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00184">fftools_ffmpeg.c:184</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a22c5e53407c3f14a8111e898dff42904"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a22c5e53407c3f14a8111e898dff42904">output_files</a></div><div class="ttdeci">__thread OutputFile ** output_files</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00186">fftools_ffmpeg.c:186</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a2bd3657586bb29d6357ddc0ed3bda70b"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a2bd3657586bb29d6357ddc0ed3bda70b">nb_output_streams</a></div><div class="ttdeci">__thread int nb_output_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00185">fftools_ffmpeg.c:185</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a2c6d81c909bf3abbf4685cfadd458a87"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a2c6d81c909bf3abbf4685cfadd458a87">guess_input_channel_layout</a></div><div class="ttdeci">int guess_input_channel_layout(InputStream *ist)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l02301">fftools_ffmpeg.c:2301</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a35146af7b101927e2e6aaaf49022f9b7"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a35146af7b101927e2e6aaaf49022f9b7">nb_input_files</a></div><div class="ttdeci">__thread int nb_input_files</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00182">fftools_ffmpeg.c:182</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a3d777831518f2c831790dd5cd6b96ddf"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a3d777831518f2c831790dd5cd6b96ddf">nb_output_files</a></div><div class="ttdeci">__thread int nb_output_files</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00187">fftools_ffmpeg.c:187</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a863888d6549c9004ae0aec0bfa0b6994"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a863888d6549c9004ae0aec0bfa0b6994">progress_avio</a></div><div class="ttdeci">__thread AVIOContext * progress_avio</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00175">fftools_ffmpeg.c:175</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a8815f40afdcda266b01da4b3137a99a3"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a8815f40afdcda266b01da4b3137a99a3">input_files</a></div><div class="ttdeci">__thread InputFile ** input_files</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00181">fftools_ffmpeg.c:181</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_a902ed0b2ffc617e274426bc05118f1c3"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#a902ed0b2ffc617e274426bc05118f1c3">filtergraphs</a></div><div class="ttdeci">__thread FilterGraph ** filtergraphs</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00189">fftools_ffmpeg.c:189</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_aa34a84957adf117f712efcb6cbfd834f"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#aa34a84957adf117f712efcb6cbfd834f">remove_avoptions</a></div><div class="ttdeci">void remove_avoptions(AVDictionary **a, AVDictionary *b)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00783">fftools_ffmpeg.c:783</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_ac69138c251f85a6e3233c9a70884be93"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#ac69138c251f85a6e3233c9a70884be93">nb_filtergraphs</a></div><div class="ttdeci">__thread int nb_filtergraphs</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00190">fftools_ffmpeg.c:190</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_ac7072b9c76dd77ce9900197d0133b0ba"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#ac7072b9c76dd77ce9900197d0133b0ba">term_init</a></div><div class="ttdeci">void term_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00504">fftools_ffmpeg.c:504</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_ae76c7a8880f594c7d0f7df762aac7a89"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#ae76c7a8880f594c7d0f7df762aac7a89">opt_progress</a></div><div class="ttdeci">int opt_progress(void *optctx, const char *opt, const char *arg)</div></div>
<div class="ttc" id="afftools__ffmpeg_8c_html_aeceadb162c07ff048a54d0d70cc851fb"><div class="ttname"><a href="../../d7/d48/fftools__ffmpeg_8c.html#aeceadb162c07ff048a54d0d70cc851fb">assert_avoptions</a></div><div class="ttdeci">void assert_avoptions(AVDictionary *m)</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l00792">fftools_ffmpeg.c:792</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html">fftools_ffmpeg.h</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a0804b6530666fd8d5f4e4193ee1d205fa293989c77f66e42d7477243815670be6"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fa293989c77f66e42d7477243815670be6">HWACCEL_NONE</a></div><div class="ttdeci">@ HWACCEL_NONE</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00082">fftools_ffmpeg.h:82</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a0804b6530666fd8d5f4e4193ee1d205fa906ee689a7c68860eb2fe1a88e483f83"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fa906ee689a7c68860eb2fe1a88e483f83">HWACCEL_QSV</a></div><div class="ttdeci">@ HWACCEL_QSV</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00086">fftools_ffmpeg.h:86</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a0804b6530666fd8d5f4e4193ee1d205fab96d67115af909300a442d76232c0362"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205fab96d67115af909300a442d76232c0362">HWACCEL_GENERIC</a></div><div class="ttdeci">@ HWACCEL_GENERIC</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00084">fftools_ffmpeg.h:84</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a0804b6530666fd8d5f4e4193ee1d205faf30c0c6c4434db4f22346cdcbd909a02"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205faf30c0c6c4434db4f22346cdcbd909a02">HWACCEL_AUTO</a></div><div class="ttdeci">@ HWACCEL_AUTO</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00083">fftools_ffmpeg.h:83</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a0804b6530666fd8d5f4e4193ee1d205faf941d724f9c78c4ac3174e2f6da82bd3"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a0804b6530666fd8d5f4e4193ee1d205faf941d724f9c78c4ac3174e2f6da82bd3">HWACCEL_VIDEOTOOLBOX</a></div><div class="ttdeci">@ HWACCEL_VIDEOTOOLBOX</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00085">fftools_ffmpeg.h:85</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a16386b3f2344042c2a72b9143f09fcfa"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a16386b3f2344042c2a72b9143f09fcfa">VSYNC_DROP</a></div><div class="ttdeci">#define VSYNC_DROP</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00077">fftools_ffmpeg.h:77</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a2aecd4d11bf1f7413cdd45a356e9fa9a"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a2aecd4d11bf1f7413cdd45a356e9fa9a">videotoolbox_init</a></div><div class="ttdeci">int videotoolbox_init(AVCodecContext *s)</div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a4a1e12ec49840b798c6413a8f6c947a9"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a4a1e12ec49840b798c6413a8f6c947a9">MAX_STREAMS</a></div><div class="ttdeci">#define MAX_STREAMS</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00079">fftools_ffmpeg.h:79</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a55f456dcb9eef4dae3472d86039ab92e"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a55f456dcb9eef4dae3472d86039ab92e">VSYNC_CFR</a></div><div class="ttdeci">#define VSYNC_CFR</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00074">fftools_ffmpeg.h:74</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a7a29c56248090da0d5fb37a87b9a695d"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a7a29c56248090da0d5fb37a87b9a695d">VSYNC_AUTO</a></div><div class="ttdeci">#define VSYNC_AUTO</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00072">fftools_ffmpeg.h:72</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a82f6df78dc4d5a93f9708b27f16de2b5"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a82f6df78dc4d5a93f9708b27f16de2b5">init_simple_filtergraph</a></div><div class="ttdeci">int init_simple_filtergraph(InputStream *ist, OutputStream *ost)</div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_a94b7523ab981f616ed14978d06d70ac9"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#a94b7523ab981f616ed14978d06d70ac9">open_files</a></div><div class="ttdeci">int open_files(OptionGroupList *l, const char *inout, int(*open_file)(OptionsContext *, const char *))</div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_aaaf7c2b3f63972f1f87face8f73cfdd6"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#aaaf7c2b3f63972f1f87face8f73cfdd6">ffmpeg_parse_options</a></div><div class="ttdeci">int ffmpeg_parse_options(int argc, char **argv)</div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ab169b16d13871a631c18d844ca70eede"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ab169b16d13871a631c18d844ca70eede">ABORT_ON_FLAG_EMPTY_OUTPUT</a></div><div class="ttdeci">#define ABORT_ON_FLAG_EMPTY_OUTPUT</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00462">fftools_ffmpeg.h:462</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ac1583448d7e49fae8d141dbddf267ff4"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ac1583448d7e49fae8d141dbddf267ff4">qsv_init</a></div><div class="ttdeci">int qsv_init(AVCodecContext *s)</div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ac19c669906e50a4be81b78eb8777ca8c"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ac19c669906e50a4be81b78eb8777ca8c">DECODING_FOR_OST</a></div><div class="ttdeci">#define DECODING_FOR_OST</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00329">fftools_ffmpeg.h:329</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ad60c6eadc7b29c15236419760b2e0094"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ad60c6eadc7b29c15236419760b2e0094">hw_device_init_from_string</a></div><div class="ttdeci">int hw_device_init_from_string(const char *arg, HWDevice **dev)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/dba/fftools__ffmpeg__hw_8c_source.html#l00103">fftools_ffmpeg_hw.c:103</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ad7582860b219ad64ec003d5924747d20"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ad7582860b219ad64ec003d5924747d20">check_filter_outputs</a></div><div class="ttdeci">void check_filter_outputs(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d36/fftools__ffmpeg__filter_8c_source.html#l00692">fftools_ffmpeg_filter.c:692</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ad997d298e58562365e7011c3d2fdd811"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ad997d298e58562365e7011c3d2fdd811">VSYNC_PASSTHROUGH</a></div><div class="ttdeci">#define VSYNC_PASSTHROUGH</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00073">fftools_ffmpeg.h:73</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ae46735072274c02ae8a17b80b8faa4dd"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ae46735072274c02ae8a17b80b8faa4dd">hw_device_get_by_name</a></div><div class="ttdeci">HWDevice * hw_device_get_by_name(const char *name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/dba/fftools__ffmpeg__hw_8c_source.html#l00053">fftools_ffmpeg_hw.c:53</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_ae4d5327ac60265779027253e0f6ca4dc"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#ae4d5327ac60265779027253e0f6ca4dc">VSYNC_VFR</a></div><div class="ttdeci">#define VSYNC_VFR</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00075">fftools_ffmpeg.h:75</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_aef69b65c48b48532da4c9a99eb744a1e"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#aef69b65c48b48532da4c9a99eb744a1e">ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM</a></div><div class="ttdeci">#define ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00463">fftools_ffmpeg.h:463</a></div></div>
<div class="ttc" id="afftools__ffmpeg_8h_html_afdeaca7898e15c0cb645228fd5bb9184"><div class="ttname"><a href="../../d7/db3/fftools__ffmpeg_8h.html#afdeaca7898e15c0cb645228fd5bb9184">init_complex_filtergraph</a></div><div class="ttdeci">int init_complex_filtergraph(FilterGraph *fg)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d36/fftools__ffmpeg__filter_8c_source.html#l00349">fftools_ffmpeg_filter.c:349</a></div></div>
<div class="ttc" id="afftools__ffmpeg__filter_8c_html_a61569f2965b7a369eb10b6d75d410d11"><div class="ttname"><a href="../../d2/d36/fftools__ffmpeg__filter_8c.html#a61569f2965b7a369eb10b6d75d410d11">int</a></div><div class="ttdeci">int</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d36/fftools__ffmpeg__filter_8c_source.html#l00200">fftools_ffmpeg_filter.c:200</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a00548df187333420b3e42a9aa05391bd"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a00548df187333420b3e42a9aa05391bd">dts_delta_threshold</a></div><div class="ttdeci">__thread float dts_delta_threshold</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00169">fftools_ffmpeg_opt.c:169</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0116f637ab1a81dd3079aaba28d280eb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0116f637ab1a81dd3079aaba28d280eb">SET_DICT</a></div><div class="ttdeci">#define SET_DICT(type, meta, context, index)</div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a02ab698433dae7a8b706e326a7bd9f8f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02ab698433dae7a8b706e326a7bd9f8f">opt_channel_layout</a></div><div class="ttdeci">int opt_channel_layout(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03173">fftools_ffmpeg_opt.c:3173</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a02e251fca80f93e4d5a3e9c27fca6be8"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e251fca80f93e4d5a3e9c27fca6be8">opt_name_frame_aspect_ratios</a></div><div class="ttdeci">static const char *const opt_name_frame_aspect_ratios[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00092">fftools_ffmpeg_opt.c:92</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a02e475f4040b6a0cb4236447d9263e00"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a02e475f4040b6a0cb4236447d9263e00">uninit_options</a></div><div class="ttdeci">void uninit_options(OptionsContext *o)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00211">fftools_ffmpeg_opt.c:211</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a03a47e17a0b8a46a12a209c7448b2ac6"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a03a47e17a0b8a46a12a209c7448b2ac6">choose_encoder</a></div><div class="ttdeci">int choose_encoder(OptionsContext *o, AVFormatContext *s, OutputStream *ost)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01406">fftools_ffmpeg_opt.c:1406</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a065c1d7227bc63b18b4324ad376568dd"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a065c1d7227bc63b18b4324ad376568dd">opt_name_max_frames</a></div><div class="ttdeci">static const char *const opt_name_max_frames[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00085">fftools_ffmpeg_opt.c:85</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a06714cf243e224ec6ebc2340c322d33f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a06714cf243e224ec6ebc2340c322d33f">copy_tb</a></div><div class="ttdeci">__thread int copy_tb</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00183">fftools_ffmpeg_opt.c:183</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a071566f5d650660c1121c4a9ecffeaad"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a071566f5d650660c1121c4a9ecffeaad">opt_name_audio_channels</a></div><div class="ttdeci">static const char *const opt_name_audio_channels[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00073">fftools_ffmpeg_opt.c:73</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a08a511c7cab7d97a7dc013197a716016"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a08a511c7cab7d97a7dc013197a716016">opt_sdp_file</a></div><div class="ttdeci">int opt_sdp_file(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00570">fftools_ffmpeg_opt.c:570</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0c3773fd5bc3734795991b7a8eda2565"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0c3773fd5bc3734795991b7a8eda2565">new_attachment_stream</a></div><div class="ttdeci">OutputStream * new_attachment_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02017">fftools_ffmpeg_opt.c:2017</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0d50908e34c08d4fb8de82f0d2ab1281"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0d50908e34c08d4fb8de82f0d2ab1281">frame_bits_per_raw_sample</a></div><div class="ttdeci">__thread int frame_bits_per_raw_sample</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00190">fftools_ffmpeg_opt.c:190</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0ddbb61c6a7dbbe50a723774a342e060"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0ddbb61c6a7dbbe50a723774a342e060">opt_timecode</a></div><div class="ttdeci">int opt_timecode(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03159">fftools_ffmpeg_opt.c:3159</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0e80e44ada7d1ec867ccdad51129ef46"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0e80e44ada7d1ec867ccdad51129ef46">ffmpeg_options</a></div><div class="ttdeci">__thread OptionDef * ffmpeg_options</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d48/fftools__ffmpeg_8c_source.html#l05163">fftools_ffmpeg.c:5163</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a0f2664ba9d547dd1d2a161d6eea38d4e"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a0f2664ba9d547dd1d2a161d6eea38d4e">opt_name_fix_sub_duration</a></div><div class="ttdeci">static const char *const opt_name_fix_sub_duration[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00104">fftools_ffmpeg_opt.c:104</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a1050d5bf2b6ea7a93a749a25a8a7db17"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1050d5bf2b6ea7a93a749a25a8a7db17">opt_vstats_file</a></div><div class="ttdeci">int opt_vstats_file(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02968">fftools_ffmpeg_opt.c:2968</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a119ac6dfc6c391d979611c6878497fb8"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a119ac6dfc6c391d979611c6878497fb8">parse_meta_type</a></div><div class="ttdeci">void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00628">fftools_ffmpeg_opt.c:628</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a15a211f78437d8b76343ffb6a5ed7691"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15a211f78437d8b76343ffb6a5ed7691">new_audio_stream</a></div><div class="ttdeci">OutputStream * new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01918">fftools_ffmpeg_opt.c:1918</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a15ce1619315986c72f387e9b41a0ff10"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a15ce1619315986c72f387e9b41a0ff10">copy_chapters</a></div><div class="ttdeci">int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02075">fftools_ffmpeg_opt.c:2075</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a18d8c3bcec71d962707be76f1bb8f05e"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a18d8c3bcec71d962707be76f1bb8f05e">stats_period</a></div><div class="ttdeci">__thread int64_t stats_period</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00196">fftools_ffmpeg_opt.c:196</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a190b363d38befc8e1dbfc4f68992bffa"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a190b363d38befc8e1dbfc4f68992bffa">opt_data_codec</a></div><div class="ttdeci">int opt_data_codec(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00361">fftools_ffmpeg_opt.c:361</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a1969322d3a144cc144a0a92f88e8add1"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1969322d3a144cc144a0a92f88e8add1">opt_streamid</a></div><div class="ttdeci">int opt_streamid(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02053">fftools_ffmpeg_opt.c:2053</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a1e1938286bdcbec435fd4153a754c11c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1e1938286bdcbec435fd4153a754c11c">opt_name_canvas_sizes</a></div><div class="ttdeci">static const char *const opt_name_canvas_sizes[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00105">fftools_ffmpeg_opt.c:105</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a1f383de2e1d88e44f8ad03e24c1c2300"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a1f383de2e1d88e44f8ad03e24c1c2300">opt_qscale</a></div><div class="ttdeci">int opt_qscale(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03105">fftools_ffmpeg_opt.c:3105</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a204f57aa5e962e076ad6a222602587d3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a204f57aa5e962e076ad6a222602587d3">opt_sameq</a></div><div class="ttdeci">int opt_sameq(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00322">fftools_ffmpeg_opt.c:322</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a226ddaa939f9e92fefe8590b96711b29"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a226ddaa939f9e92fefe8590b96711b29">new_subtitle_stream</a></div><div class="ttdeci">OutputStream * new_subtitle_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02025">fftools_ffmpeg_opt.c:2025</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a23208b7fc9f279c60f006ad45c827146"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23208b7fc9f279c60f006ad45c827146">opt_filter_complex_script</a></div><div class="ttdeci">int opt_filter_complex_script(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03230">fftools_ffmpeg_opt.c:3230</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a23afba338ad9fc8a6e65ba0f6400ebc3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a23afba338ad9fc8a6e65ba0f6400ebc3">sdp_filename</a></div><div class="ttdeci">__thread char * sdp_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00166">fftools_ffmpeg_opt.c:166</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a25ca6c25e6e32e8f98fe714f4eef5e08"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a25ca6c25e6e32e8f98fe714f4eef5e08">opt_name_top_field_first</a></div><div class="ttdeci">static const char *const opt_name_top_field_first[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00097">fftools_ffmpeg_opt.c:97</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a266b53c47514391446a21cb6d50f099d"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a266b53c47514391446a21cb6d50f099d">opt_filter_complex</a></div><div class="ttdeci">int opt_filter_complex(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03215">fftools_ffmpeg_opt.c:3215</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a28263e9a77f75dbe0b729b27965d7010"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a28263e9a77f75dbe0b729b27965d7010">opt_name_autorotate</a></div><div class="ttdeci">static const char *const opt_name_autorotate[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00083">fftools_ffmpeg_opt.c:83</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a290d82d6941e8243459bc374ef322e81"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a290d82d6941e8243459bc374ef322e81">opt_name_inter_matrices</a></div><div class="ttdeci">static const char *const opt_name_inter_matrices[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00095">fftools_ffmpeg_opt.c:95</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a2b0b7b6ba4d8f6bec8f9bb410606787a"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b0b7b6ba4d8f6bec8f9bb410606787a">opt_vsync</a></div><div class="ttdeci">int opt_vsync(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03147">fftools_ffmpeg_opt.c:3147</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a2b7c43b1c753d5dce457b81d54fdad32"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2b7c43b1c753d5dce457b81d54fdad32">fftools_read_file</a></div><div class="ttdeci">uint8_t * fftools_read_file(const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01645">fftools_ffmpeg_opt.c:1645</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a2e982c39d1861f0c59ccdd2fb028ec68"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2e982c39d1861f0c59ccdd2fb028ec68">print_stats</a></div><div class="ttdeci">__thread int print_stats</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00187">fftools_ffmpeg_opt.c:187</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a2f1889d8ac7f17c1a7b5168bb4b32d17"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f1889d8ac7f17c1a7b5168bb4b32d17">video_sync_method</a></div><div class="ttdeci">__thread int video_sync_method</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00174">fftools_ffmpeg_opt.c:174</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a2f2388cbef2d4d1e46d2f5d768c1e916"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a2f2388cbef2d4d1e46d2f5d768c1e916">filter_complex_nbthreads</a></div><div class="ttdeci">__thread int filter_complex_nbthreads</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00193">fftools_ffmpeg_opt.c:193</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a3194c206b4bc6007ec56e8c7cf6596e9"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3194c206b4bc6007ec56e8c7cf6596e9">abort_on_flags</a></div><div class="ttdeci">__thread int abort_on_flags</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00186">fftools_ffmpeg_opt.c:186</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a322afb1b7613bc57d3939db06de66225"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a322afb1b7613bc57d3939db06de66225">opt_name_sample_fmts</a></div><div class="ttdeci">static const char *const opt_name_sample_fmts[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00088">fftools_ffmpeg_opt.c:88</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a33649f7955e76638005a3b90157d1acb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a33649f7955e76638005a3b90157d1acb">opt_name_codec_tags</a></div><div class="ttdeci">static const char *const opt_name_codec_tags[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00087">fftools_ffmpeg_opt.c:87</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a35587cfd54cad4d313e805729850c814"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a35587cfd54cad4d313e805729850c814">opt_name_force_fps</a></div><div class="ttdeci">static const char *const opt_name_force_fps[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00091">fftools_ffmpeg_opt.c:91</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a363b436188dcb847ebce8ec575fdb395"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a363b436188dcb847ebce8ec575fdb395">audio_volume</a></div><div class="ttdeci">__thread int audio_volume</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00172">fftools_ffmpeg_opt.c:172</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a388b87af90f84d6eb3c06e9c10f11ec3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a388b87af90f84d6eb3c06e9c10f11ec3">max_error_rate</a></div><div class="ttdeci">__thread float max_error_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00191">fftools_ffmpeg_opt.c:191</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a3bb1a02e27b951f57d8927aa3b017f2e"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3bb1a02e27b951f57d8927aa3b017f2e">opt_name_passlogfiles</a></div><div class="ttdeci">static const char *const opt_name_passlogfiles[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00107">fftools_ffmpeg_opt.c:107</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a3f6ae3233facfaaad9c9fcfcb5562029"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a3f6ae3233facfaaad9c9fcfcb5562029">opt_name_max_muxing_queue_size</a></div><div class="ttdeci">static const char *const opt_name_max_muxing_queue_size[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00108">fftools_ffmpeg_opt.c:108</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a44d8dc72efc9d1c7433964650d7b4365"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a44d8dc72efc9d1c7433964650d7b4365">opt_name_muxing_queue_data_threshold</a></div><div class="ttdeci">static const char *const opt_name_muxing_queue_data_threshold[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00109">fftools_ffmpeg_opt.c:109</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4563efb367e0659a32b5b0ad0ac4578d"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4563efb367e0659a32b5b0ad0ac4578d">opt_name_apad</a></div><div class="ttdeci">static const char *const opt_name_apad[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00111">fftools_ffmpeg_opt.c:111</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a47524eff5f8b0f4d59e5d7910a14fdb4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a47524eff5f8b0f4d59e5d7910a14fdb4">opt_name_hwaccels</a></div><div class="ttdeci">static const char *const opt_name_hwaccels[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00080">fftools_ffmpeg_opt.c:80</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4840dc6953824a08972501cff95620e5"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4840dc6953824a08972501cff95620e5">copy_ts</a></div><div class="ttdeci">__thread int copy_ts</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00181">fftools_ffmpeg_opt.c:181</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a48480a652b5966f72dc167d6bb44b061"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a48480a652b5966f72dc167d6bb44b061">stdin_interaction</a></div><div class="ttdeci">__thread int stdin_interaction</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00189">fftools_ffmpeg_opt.c:189</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a484aa69c151bca853b0f4db4001d8457"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a484aa69c151bca853b0f4db4001d8457">opt_name_copy_prior_start</a></div><div class="ttdeci">static const char *const opt_name_copy_prior_start[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00100">fftools_ffmpeg_opt.c:100</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4929557da5993e7e352caa7b2b969569"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4929557da5993e7e352caa7b2b969569">opt_name_presets</a></div><div class="ttdeci">static const char *const opt_name_presets[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00098">fftools_ffmpeg_opt.c:98</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4a588b5f7cb9e583ca84529ae89b0382"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4a588b5f7cb9e583ca84529ae89b0382">opt_subtitle_codec</a></div><div class="ttdeci">int opt_subtitle_codec(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00355">fftools_ffmpeg_opt.c:355</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4cc472c69041f4fae418334430ccb829"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4cc472c69041f4fae418334430ccb829">MATCH_PER_TYPE_OPT</a></div><div class="ttdeci">#define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00144">fftools_ffmpeg_opt.c:144</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4d87d507b1382b2b4204e77a528ea679"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4d87d507b1382b2b4204e77a528ea679">dts_error_threshold</a></div><div class="ttdeci">__thread float dts_error_threshold</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00170">fftools_ffmpeg_opt.c:170</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4d934208acdc296fd2b2c79c34851163"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4d934208acdc296fd2b2c79c34851163">opt_video_standard</a></div><div class="ttdeci">int opt_video_standard(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00337">fftools_ffmpeg_opt.c:337</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a4dd32a1942a804edb22f2e016406db41"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a4dd32a1942a804edb22f2e016406db41">DEFAULT_PASS_LOGFILENAME_PREFIX</a></div><div class="ttdeci">#define DEFAULT_PASS_LOGFILENAME_PREFIX</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00063">fftools_ffmpeg_opt.c:63</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5347d5d678e9927aa9f8b0fdd839b8d3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5347d5d678e9927aa9f8b0fdd839b8d3">opt_name_frame_rates</a></div><div class="ttdeci">static const char *const opt_name_frame_rates[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00075">fftools_ffmpeg_opt.c:75</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a540336d8019a727fad05b1d6c53e7c15"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a540336d8019a727fad05b1d6c53e7c15">open_input_file</a></div><div class="ttdeci">int open_input_file(OptionsContext *o, const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01087">fftools_ffmpeg_opt.c:1087</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a54e869e9bf4cd94ebe110ee0c8e407bb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a54e869e9bf4cd94ebe110ee0c8e407bb">opt_profile</a></div><div class="ttdeci">int opt_profile(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03123">fftools_ffmpeg_opt.c:3123</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a55b73904843c6c623ce52acba119705c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55b73904843c6c623ce52acba119705c">opt_name_max_frame_rates</a></div><div class="ttdeci">static const char *const opt_name_max_frame_rates[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00076">fftools_ffmpeg_opt.c:76</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a55e636661397aed6950fd1f4667e3439"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a55e636661397aed6950fd1f4667e3439">get_ost_filters</a></div><div class="ttdeci">char * get_ost_filters(OptionsContext *o, AVFormatContext *oc, OutputStream *ost)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01673">fftools_ffmpeg_opt.c:1673</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a580929ca02227da8a5ec81f78b0637dd"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a580929ca02227da8a5ec81f78b0637dd">find_codec_or_die</a></div><div class="ttdeci">AVCodec * find_codec_or_die(const char *name, enum AVMediaType type, int encoder)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00760">fftools_ffmpeg_opt.c:760</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5be020cdefd4b772020265e2bb1d256f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5be020cdefd4b772020265e2bb1d256f">filter_nbthreads</a></div><div class="ttdeci">__thread int filter_nbthreads</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00192">fftools_ffmpeg_opt.c:192</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5c02784e9a4c52395dd293ac626055c3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5c02784e9a4c52395dd293ac626055c3">opt_abort_on</a></div><div class="ttdeci">int opt_abort_on(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00288">fftools_ffmpeg_opt.c:288</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5ca4ba3ead2e600e7a6bada7396a5e4d"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ca4ba3ead2e600e7a6bada7396a5e4d">show_usage</a></div><div class="ttdeci">void show_usage(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03320">fftools_ffmpeg_opt.c:3320</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5d127770d764925d75c367f80bc76228"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5d127770d764925d75c367f80bc76228">opt_name_hwaccel_devices</a></div><div class="ttdeci">static const char *const opt_name_hwaccel_devices[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00081">fftools_ffmpeg_opt.c:81</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a5ea9613c6b24f9f9aec20afde671ad3a"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a5ea9613c6b24f9f9aec20afde671ad3a">copy_unknown_streams</a></div><div class="ttdeci">__thread int copy_unknown_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00206">fftools_ffmpeg_opt.c:206</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a63165e9cf0b0c917a42834d1f1972073"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a63165e9cf0b0c917a42834d1f1972073">opt_video_codec</a></div><div class="ttdeci">int opt_video_codec(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00349">fftools_ffmpeg_opt.c:349</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a65414dc020391d0ec9ed39ad9920dd0f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a65414dc020391d0ec9ed39ad9920dd0f">opt_data_frames</a></div><div class="ttdeci">int opt_data_frames(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03003">fftools_ffmpeg_opt.c:3003</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a663c23e27b0412e3d67205757114d16b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a663c23e27b0412e3d67205757114d16b">get_line</a></div><div class="ttdeci">uint8_t * get_line(AVIOContext *s)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01361">fftools_ffmpeg_opt.c:1361</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a67b88ce0f88b9b220671a44632d129a4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a67b88ce0f88b9b220671a44632d129a4">opt_video_filters</a></div><div class="ttdeci">int opt_video_filters(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03135">fftools_ffmpeg_opt.c:3135</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a6c0fb8ee2ce9782980e83a03dacabf07"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6c0fb8ee2ce9782980e83a03dacabf07">input_sync</a></div><div class="ttdeci">__thread int input_sync</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00203">fftools_ffmpeg_opt.c:203</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a6daca6c13986317750131ee7a05844ee"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6daca6c13986317750131ee7a05844ee">opt_attach</a></div><div class="ttdeci">int opt_attach(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00485">fftools_ffmpeg_opt.c:485</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a6df30d0ba964de54d8050a9b46a45332"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6df30d0ba964de54d8050a9b46a45332">do_benchmark</a></div><div class="ttdeci">__thread int do_benchmark</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00177">fftools_ffmpeg_opt.c:177</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a6fc46048a19a5b21c2d0e21875aad2cb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a6fc46048a19a5b21c2d0e21875aad2cb">opt_filter_hw_device</a></div><div class="ttdeci">int opt_filter_hw_device(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00607">fftools_ffmpeg_opt.c:607</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a709d9cd135b22926f3817be99cd98ce9"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a709d9cd135b22926f3817be99cd98ce9">frame_drop_threshold</a></div><div class="ttdeci">__thread float frame_drop_threshold</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00175">fftools_ffmpeg_opt.c:175</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a71ada39e51376d4fa3efbc6ed705d39b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a71ada39e51376d4fa3efbc6ed705d39b">vstats_version</a></div><div class="ttdeci">__thread int vstats_version</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00194">fftools_ffmpeg_opt.c:194</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a767f4348992f8faeaf443a3b0292d87a"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a767f4348992f8faeaf443a3b0292d87a">vstats_filename</a></div><div class="ttdeci">__thread char * vstats_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00165">fftools_ffmpeg_opt.c:165</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7713e7604e1b50d8f1ba5c3c445dde28"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7713e7604e1b50d8f1ba5c3c445dde28">do_deinterlace</a></div><div class="ttdeci">__thread int do_deinterlace</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00176">fftools_ffmpeg_opt.c:176</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7764402c86633630b61750779ce41c2e"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7764402c86633630b61750779ce41c2e">opt_audio_frames</a></div><div class="ttdeci">int opt_audio_frames(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02997">fftools_ffmpeg_opt.c:2997</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7ac571c7c938d6c34daf608a1183364f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ac571c7c938d6c34daf608a1183364f">no_file_overwrite</a></div><div class="ttdeci">__thread int no_file_overwrite</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00201">fftools_ffmpeg_opt.c:201</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7b688fe508a8d85961a487d4eb3f3121"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7b688fe508a8d85961a487d4eb3f3121">opt_target</a></div><div class="ttdeci">int opt_target(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02824">fftools_ffmpeg_opt.c:2824</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7cddc701ff06bdb72d4fc4e9d58fef18"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7cddc701ff06bdb72d4fc4e9d58fef18">check_streamcopy_filters</a></div><div class="ttdeci">void check_streamcopy_filters(OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01693">fftools_ffmpeg_opt.c:1693</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7d696d81136510fe5a6de2c83a047743"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7d696d81136510fe5a6de2c83a047743">opt_name_discard</a></div><div class="ttdeci">static const char *const opt_name_discard[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00112">fftools_ffmpeg_opt.c:112</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7dbb7cc7c7d0f45bbb80b2e494b0bbff"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dbb7cc7c7d0f45bbb80b2e494b0bbff">opt_name_rc_overrides</a></div><div class="ttdeci">static const char *const opt_name_rc_overrides[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00093">fftools_ffmpeg_opt.c:93</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7dc51392d39a130d795ab6259f8e5146"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7dc51392d39a130d795ab6259f8e5146">opt_name_forced_key_frames</a></div><div class="ttdeci">static const char *const opt_name_forced_key_frames[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00090">fftools_ffmpeg_opt.c:90</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7ebbd72251d3d58fe5b316928a40bed3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ebbd72251d3d58fe5b316928a40bed3">audio_sync_method</a></div><div class="ttdeci">__thread int audio_sync_method</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00173">fftools_ffmpeg_opt.c:173</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a7ff9fc15df210f9a62862e23e6a18d70"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a7ff9fc15df210f9a62862e23e6a18d70">init_complex_filters</a></div><div class="ttdeci">int init_complex_filters(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02160">fftools_ffmpeg_opt.c:2160</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a80cef4274f0f47914ca35f6da2252eeb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a80cef4274f0f47914ca35f6da2252eeb">new_output_stream</a></div><div class="ttdeci">OutputStream * new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01441">fftools_ffmpeg_opt.c:1441</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8213a5f67f3b7e411fafc95d38ad0ea7"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8213a5f67f3b7e411fafc95d38ad0ea7">opt_name_time_bases</a></div><div class="ttdeci">static const char *const opt_name_time_bases[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00114">fftools_ffmpeg_opt.c:114</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8268b4d228f88edaf9bbb1dff1d1338c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8268b4d228f88edaf9bbb1dff1d1338c">file_overwrite</a></div><div class="ttdeci">__thread int file_overwrite</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00200">fftools_ffmpeg_opt.c:200</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a83bedb407ba3c293570b773d4c157ca0"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a83bedb407ba3c293570b773d4c157ca0">opt_map</a></div><div class="ttdeci">int opt_map(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00367">fftools_ffmpeg_opt.c:367</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8454a6a2632a5ce0f2983c9499649ede"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8454a6a2632a5ce0f2983c9499649ede">audio_drift_threshold</a></div><div class="ttdeci">__thread float audio_drift_threshold</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00168">fftools_ffmpeg_opt.c:168</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a86f38ed6c04b24cdcd998881f6d45563"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a86f38ed6c04b24cdcd998881f6d45563">opt_name_frame_sizes</a></div><div class="ttdeci">static const char *const opt_name_frame_sizes[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00077">fftools_ffmpeg_opt.c:77</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8a7b7a8fd4c39cfd95d0577ba6516f80"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8a7b7a8fd4c39cfd95d0577ba6516f80">opt_name_audio_sample_rate</a></div><div class="ttdeci">static const char *const opt_name_audio_sample_rate[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00074">fftools_ffmpeg_opt.c:74</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8d9d6b274d5ebbf27d245081b2d68aea"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8d9d6b274d5ebbf27d245081b2d68aea">opt_name_filter_scripts</a></div><div class="ttdeci">static const char *const opt_name_filter_scripts[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00102">fftools_ffmpeg_opt.c:102</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8f4c866b64b4928d5f63a1a4570b6137"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f4c866b64b4928d5f63a1a4570b6137">do_benchmark_all</a></div><div class="ttdeci">__thread int do_benchmark_all</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00178">fftools_ffmpeg_opt.c:178</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8f725a766755b848221895b283f206a8"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f725a766755b848221895b283f206a8">opt_vstats</a></div><div class="ttdeci">int opt_vstats(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02975">fftools_ffmpeg_opt.c:2975</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8f9563dc8dcf73b0869cc92b577673e5"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9563dc8dcf73b0869cc92b577673e5">choose_decoder</a></div><div class="ttdeci">AVCodec * choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *st)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00789">fftools_ffmpeg_opt.c:789</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a8f9afad553b7838b7c592b61b108eb8b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a8f9afad553b7838b7c592b61b108eb8b">opt_video_channel</a></div><div class="ttdeci">int opt_video_channel(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00331">fftools_ffmpeg_opt.c:331</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a9133815d152568ea1d45114b7866253a"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9133815d152568ea1d45114b7866253a">start_at_zero</a></div><div class="ttdeci">__thread int start_at_zero</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00182">fftools_ffmpeg_opt.c:182</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a923d5e1d86ce330625dd7d55d4e0b7cd"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a923d5e1d86ce330625dd7d55d4e0b7cd">opt_name_enc_time_bases</a></div><div class="ttdeci">static const char *const opt_name_enc_time_bases[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00115">fftools_ffmpeg_opt.c:115</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a9324d262380638a863ba421a6905e89b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9324d262380638a863ba421a6905e89b">parse_matrix_coeffs</a></div><div class="ttdeci">void parse_matrix_coeffs(uint16_t *dest, const char *str)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01627">fftools_ffmpeg_opt.c:1627</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a934f418f64986c128430cffdfa11abcc"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a934f418f64986c128430cffdfa11abcc">opt_name_reinit_filters</a></div><div class="ttdeci">static const char *const opt_name_reinit_filters[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00103">fftools_ffmpeg_opt.c:103</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a96a58c49cf1904b28615fd1778a12753"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a96a58c49cf1904b28615fd1778a12753">find_stream_info</a></div><div class="ttdeci">__thread int find_stream_info</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00207">fftools_ffmpeg_opt.c:207</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a980e27c6f6226db3cd1e0fff390df29b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a980e27c6f6226db3cd1e0fff390df29b">opt_video_frames</a></div><div class="ttdeci">int opt_video_frames(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02991">fftools_ffmpeg_opt.c:2991</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a9bc9a2fdcee987f9900054f9d7dc28e9"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9bc9a2fdcee987f9900054f9d7dc28e9">assert_file_overwrite</a></div><div class="ttdeci">void assert_file_overwrite(const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01012">fftools_ffmpeg_opt.c:1012</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_a9ee898e4ccb3070653e59a5615c4c5aa"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#a9ee898e4ccb3070653e59a5615c4c5aa">opt_audio_filters</a></div><div class="ttdeci">int opt_audio_filters(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03141">fftools_ffmpeg_opt.c:3141</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aa30902db873df385e004b04e2ecf7f6f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa30902db873df385e004b04e2ecf7f6f">exit_on_error</a></div><div class="ttdeci">__thread int exit_on_error</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00185">fftools_ffmpeg_opt.c:185</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aa5ed7cfda0a5c2ff397b0d731dbb1005"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa5ed7cfda0a5c2ff397b0d731dbb1005">opt_name_guess_layout_max</a></div><div class="ttdeci">static const char *const opt_name_guess_layout_max[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00110">fftools_ffmpeg_opt.c:110</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aa92bf94652218255e5386329ec0edbd5"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa92bf94652218255e5386329ec0edbd5">opt_audio_qscale</a></div><div class="ttdeci">int opt_audio_qscale(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03209">fftools_ffmpeg_opt.c:3209</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aa9e1780c2ce777fc9a0d205b5769324b"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aa9e1780c2ce777fc9a0d205b5769324b">get_preset_file_2</a></div><div class="ttdeci">int get_preset_file_2(const char *preset_name, const char *codec_name, AVIOContext **s)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01380">fftools_ffmpeg_opt.c:1380</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aab8ea01d3694d9b0e70b09a5f1f386e4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aab8ea01d3694d9b0e70b09a5f1f386e4">init_output_filter</a></div><div class="ttdeci">void init_output_filter(OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02118">fftools_ffmpeg_opt.c:2118</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ab1202336863f378d4602072dfa5efdf5"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1202336863f378d4602072dfa5efdf5">new_data_stream</a></div><div class="ttdeci">OutputStream * new_data_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01991">fftools_ffmpeg_opt.c:1991</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ab1f22665dffd8f63fb4f4bce3a1b5b6c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab1f22665dffd8f63fb4f4bce3a1b5b6c">strip_specifiers</a></div><div class="ttdeci">AVDictionary * strip_specifiers(AVDictionary *dict)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00271">fftools_ffmpeg_opt.c:271</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ab8657573c1da211a171168837101af5c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab8657573c1da211a171168837101af5c">show_hwaccels</a></div><div class="ttdeci">int show_hwaccels(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00258">fftools_ffmpeg_opt.c:258</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ab91a5aa23dd763d88ff7cfedeadca8a4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ab91a5aa23dd763d88ff7cfedeadca8a4">filter_hw_device</a></div><div class="ttdeci">__thread HWDevice * filter_hw_device</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00163">fftools_ffmpeg_opt.c:163</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_abaf811ecede8a95cd17d4cedd6247ea7"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#abaf811ecede8a95cd17d4cedd6247ea7">opt_preset</a></div><div class="ttdeci">int opt_preset(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03029">fftools_ffmpeg_opt.c:3029</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_abf20f110d78c43da06a8a8921ec6aa10"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#abf20f110d78c43da06a8a8921ec6aa10">opt_name_hwaccel_output_formats</a></div><div class="ttdeci">static const char *const opt_name_hwaccel_output_formats[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00082">fftools_ffmpeg_opt.c:82</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ac228692b5caafb601b626e82fb036b00"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac228692b5caafb601b626e82fb036b00">opt_name_chroma_intra_matrices</a></div><div class="ttdeci">static const char *const opt_name_chroma_intra_matrices[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00096">fftools_ffmpeg_opt.c:96</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ac4901465fa02f303211b5bd221b312ac"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac4901465fa02f303211b5bd221b312ac">opt_old2new</a></div><div class="ttdeci">int opt_old2new(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03077">fftools_ffmpeg_opt.c:3077</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ac60615242d760b1373faa97e9ca35da0"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac60615242d760b1373faa97e9ca35da0">opt_name_filters</a></div><div class="ttdeci">static const char *const opt_name_filters[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00101">fftools_ffmpeg_opt.c:101</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ac7ca319e595fa817051314772b70fe19"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ac7ca319e595fa817051314772b70fe19">opt_name_copy_initial_nonkeyframes</a></div><div class="ttdeci">static const char *const opt_name_copy_initial_nonkeyframes[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00099">fftools_ffmpeg_opt.c:99</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aca8fb43a0670d7c55f53d82e219d9237"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aca8fb43a0670d7c55f53d82e219d9237">opt_stats_period</a></div><div class="ttdeci">int opt_stats_period(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00307">fftools_ffmpeg_opt.c:307</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_acb26d364405e283095a6d192d1caeaee"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb26d364405e283095a6d192d1caeaee">opt_name_intra_matrices</a></div><div class="ttdeci">static const char *const opt_name_intra_matrices[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00094">fftools_ffmpeg_opt.c:94</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_acb83c221072b82ac43e6ebe61787072c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb83c221072b82ac43e6ebe61787072c">MATCH_PER_STREAM_OPT</a></div><div class="ttdeci">#define MATCH_PER_STREAM_OPT(name, type, outvar, fmtctx, st)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00127">fftools_ffmpeg_opt.c:127</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_acb8764e6b707c0419180699d972e9b70"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#acb8764e6b707c0419180699d972e9b70">add_input_streams</a></div><div class="ttdeci">void add_input_streams(OptionsContext *o, AVFormatContext *ic)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00804">fftools_ffmpeg_opt.c:804</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_acbbcf4d3fc3ffdf3ab8fb140380e9b3d"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#acbbcf4d3fc3ffdf3ab8fb140380e9b3d">opt_name_bitstream_filters</a></div><div class="ttdeci">static const char *const opt_name_bitstream_filters[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00086">fftools_ffmpeg_opt.c:86</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ad2242da08cbe3afb277b3be3579935fe"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad2242da08cbe3afb277b3be3579935fe">qp_hist</a></div><div class="ttdeci">__thread int qp_hist</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00188">fftools_ffmpeg_opt.c:188</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ad4e5c141bf83207d19eecec3a9341141"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad4e5c141bf83207d19eecec3a9341141">opt_name_qscale</a></div><div class="ttdeci">static const char *const opt_name_qscale[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00089">fftools_ffmpeg_opt.c:89</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ad5081d8deb9d504a42ce8548068c2096"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad5081d8deb9d504a42ce8548068c2096">opt_bitrate</a></div><div class="ttdeci">int opt_bitrate(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03089">fftools_ffmpeg_opt.c:3089</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ad63f18efd0a1c58dfecf770f75868198"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad63f18efd0a1c58dfecf770f75868198">new_unknown_stream</a></div><div class="ttdeci">OutputStream * new_unknown_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02004">fftools_ffmpeg_opt.c:2004</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ad93637c5f6fbe2a6c2a31f4855fce0ee"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ad93637c5f6fbe2a6c2a31f4855fce0ee">opt_name_codec_names</a></div><div class="ttdeci">static const char *const opt_name_codec_names[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00072">fftools_ffmpeg_opt.c:72</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ada7285da9f88d7f0a0b31eaf66a33200"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ada7285da9f88d7f0a0b31eaf66a33200">fftools_copy_metadata</a></div><div class="ttdeci">int fftools_copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00655">fftools_ffmpeg_opt.c:655</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_adb46b97d7f835a8aab51ffdc8287ae8a"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#adb46b97d7f835a8aab51ffdc8287ae8a">opt_default_new</a></div><div class="ttdeci">int opt_default_new(OptionsContext *o, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03009">fftools_ffmpeg_opt.c:3009</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_adc3928a88e1ab2eacb04c5fa1b6bfe00"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#adc3928a88e1ab2eacb04c5fa1b6bfe00">new_video_stream</a></div><div class="ttdeci">OutputStream * new_video_stream(OptionsContext *o, AVFormatContext *oc, int source_index)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01707">fftools_ffmpeg_opt.c:1707</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae1a832e0aee85dbc82c89e7f91b94619"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae1a832e0aee85dbc82c89e7f91b94619">do_psnr</a></div><div class="ttdeci">__thread int do_psnr</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00202">fftools_ffmpeg_opt.c:202</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae2acfe3d539b3a25ffa72f4143215c13"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae2acfe3d539b3a25ffa72f4143215c13">do_hex_dump</a></div><div class="ttdeci">__thread int do_hex_dump</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00179">fftools_ffmpeg_opt.c:179</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae377a2eca138e9ca6f7f70bd7a745c95"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae377a2eca138e9ca6f7f70bd7a745c95">opt_name_autoscale</a></div><div class="ttdeci">static const char *const opt_name_autoscale[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00084">fftools_ffmpeg_opt.c:84</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae3dab0dd8f469bd52011cfdaa0370ce3"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae3dab0dd8f469bd52011cfdaa0370ce3">do_pkt_dump</a></div><div class="ttdeci">__thread int do_pkt_dump</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00180">fftools_ffmpeg_opt.c:180</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae4051148bbc3f89a78b6de3f6eddb997"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae4051148bbc3f89a78b6de3f6eddb997">hwaccels</a></div><div class="ttdeci">const HWAccel hwaccels[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00154">fftools_ffmpeg_opt.c:154</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae5e3335eee688ea6d2fbe00ae4fcefb6"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae5e3335eee688ea6d2fbe00ae4fcefb6">dump_attachment</a></div><div class="ttdeci">void dump_attachment(AVStream *st, const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l01055">fftools_ffmpeg_opt.c:1055</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae65e836132b235a3c7dbc7bd00b35d54"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae65e836132b235a3c7dbc7bd00b35d54">init_options</a></div><div class="ttdeci">void init_options(OptionsContext *o)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00243">fftools_ffmpeg_opt.c:243</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae684cc527fec35feafac738f59a5fb34"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae684cc527fec35feafac738f59a5fb34">debug_ts</a></div><div class="ttdeci">__thread int debug_ts</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00184">fftools_ffmpeg_opt.c:184</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae6d1db10a80aaa34ec2c41f9d45d05b5"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae6d1db10a80aaa34ec2c41f9d45d05b5">opt_map_channel</a></div><div class="ttdeci">int opt_map_channel(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00493">fftools_ffmpeg_opt.c:493</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae9aaf2d6ff0cf3a0a665445d00365a68"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9aaf2d6ff0cf3a0a665445d00365a68">open_output_file</a></div><div class="ttdeci">int open_output_file(OptionsContext *o, const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l02172">fftools_ffmpeg_opt.c:2172</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_ae9cffaa367854d0de61e1f2fa780fdf4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#ae9cffaa367854d0de61e1f2fa780fdf4">opt_audio_codec</a></div><div class="ttdeci">int opt_audio_codec(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00343">fftools_ffmpeg_opt.c:343</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aea75291d8c8437ac12c8e2c64e0a9d7d"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aea75291d8c8437ac12c8e2c64e0a9d7d">opt_recording_timestamp</a></div><div class="ttdeci">int opt_recording_timestamp(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00745">fftools_ffmpeg_opt.c:745</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aebed4ab68dafa693f99e1fa92decedb7"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aebed4ab68dafa693f99e1fa92decedb7">auto_conversion_filters</a></div><div class="ttdeci">__thread int auto_conversion_filters</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00195">fftools_ffmpeg_opt.c:195</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aec5517cf220aff5a0a7e4dc012f72c6c"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aec5517cf220aff5a0a7e4dc012f72c6c">opt_name_ts_scale</a></div><div class="ttdeci">static const char *const opt_name_ts_scale[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00079">fftools_ffmpeg_opt.c:79</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aedf58dd37d56e26a71b477ac1c89fceb"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aedf58dd37d56e26a71b477ac1c89fceb">opt_name_disposition</a></div><div class="ttdeci">static const char *const opt_name_disposition[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00113">fftools_ffmpeg_opt.c:113</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_aefe49155ac108fa47eee131a07fd856f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#aefe49155ac108fa47eee131a07fd856f">show_help_default_ffmpeg</a></div><div class="ttdeci">void show_help_default_ffmpeg(const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l03247">fftools_ffmpeg_opt.c:3247</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_af3fa675a2321438e48c5af7dd5ab428e"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#af3fa675a2321438e48c5af7dd5ab428e">input_stream_potentially_available</a></div><div class="ttdeci">__thread int input_stream_potentially_available</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00204">fftools_ffmpeg_opt.c:204</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_af4c1703b4956f5e062204d5c36b1721f"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#af4c1703b4956f5e062204d5c36b1721f">opt_name_frame_pix_fmts</a></div><div class="ttdeci">static const char *const opt_name_frame_pix_fmts[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00078">fftools_ffmpeg_opt.c:78</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_af776ea0ed951054185f753d7d255d884"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#af776ea0ed951054185f753d7d255d884">ignore_unknown_streams</a></div><div class="ttdeci">__thread int ignore_unknown_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00205">fftools_ffmpeg_opt.c:205</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_af848648dccdf2e8b2bfd969886657ed7"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#af848648dccdf2e8b2bfd969886657ed7">intra_only</a></div><div class="ttdeci">__thread int intra_only</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00199">fftools_ffmpeg_opt.c:199</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_af982effd9489a2439594fba709c01cf4"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#af982effd9489a2439594fba709c01cf4">opt_name_pass</a></div><div class="ttdeci">static const char *const opt_name_pass[]</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00106">fftools_ffmpeg_opt.c:106</a></div></div>
<div class="ttc" id="afftools__ffmpeg__opt_8c_html_afbf861d556934c3dcf48cee107df6473"><div class="ttname"><a href="../../da/d66/fftools__ffmpeg__opt_8c.html#afbf861d556934c3dcf48cee107df6473">opt_init_hw_device</a></div><div class="ttdeci">int opt_init_hw_device(void *optctx, const char *opt, const char *arg)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/d66/fftools__ffmpeg__opt_8c_source.html#l00592">fftools_ffmpeg_opt.c:592</a></div></div>
<div class="ttc" id="afftools__ffprobe_8c_html_abad15c2aaf9c54ccddd8d8abf6bed069"><div class="ttname"><a href="../../d8/d78/fftools__ffprobe_8c.html#abad15c2aaf9c54ccddd8d8abf6bed069">nb_streams</a></div><div class="ttdeci">__thread int nb_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d78/fftools__ffprobe_8c_source.html#l00289">fftools_ffprobe.c:289</a></div></div>
<div class="ttc" id="asaf__wrapper_8h_html_a0ceafc1e6f5e79ebe5a56f7820e40929"><div class="ttname"><a href="../../d6/d1f/saf__wrapper_8h.html#a0ceafc1e6f5e79ebe5a56f7820e40929">avformat_open_input</a></div><div class="ttdeci">#define avformat_open_input</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d1f/saf__wrapper_8h_source.html#l00044">saf_wrapper.h:44</a></div></div>
<div class="ttc" id="asaf__wrapper_8h_html_a978b4688385a9cc2529c31ac860151d5"><div class="ttname"><a href="../../d6/d1f/saf__wrapper_8h.html#a978b4688385a9cc2529c31ac860151d5">avio_open2</a></div><div class="ttdeci">#define avio_open2</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d1f/saf__wrapper_8h_source.html#l00040">saf_wrapper.h:40</a></div></div>
<div class="ttc" id="asaf__wrapper_8h_html_aac82a8482c95977621b733460cfdea39"><div class="ttname"><a href="../../d6/d1f/saf__wrapper_8h.html#aac82a8482c95977621b733460cfdea39">avio_open</a></div><div class="ttdeci">#define avio_open</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d1f/saf__wrapper_8h_source.html#l00036">saf_wrapper.h:36</a></div></div>
<div class="ttc" id="asaf__wrapper_8h_html_ad630e12e35075294df64066949aece9b"><div class="ttname"><a href="../../d6/d1f/saf__wrapper_8h.html#ad630e12e35075294df64066949aece9b">avio_closep</a></div><div class="ttdeci">#define avio_closep</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d1f/saf__wrapper_8h_source.html#l00030">saf_wrapper.h:30</a></div></div>
<div class="ttc" id="asaf__wrapper_8h_html_afc5dd40d58ea919eff6eee28cab77c18"><div class="ttname"><a href="../../d6/d1f/saf__wrapper_8h.html#afc5dd40d58ea919eff6eee28cab77c18">avformat_close_input</a></div><div class="ttdeci">#define avformat_close_input</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d1f/saf__wrapper_8h_source.html#l00033">saf_wrapper.h:33</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html">AudioChannelMap</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00112">fftools_ffmpeg.h:112</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html_a32f90014a8e83a47c8ef3893bc1c100e"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html#a32f90014a8e83a47c8ef3893bc1c100e">AudioChannelMap::stream_idx</a></div><div class="ttdeci">int stream_idx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00113">fftools_ffmpeg.h:113</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html_a3e51062d85dde52c40982e5af3b4bc03"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html#a3e51062d85dde52c40982e5af3b4bc03">AudioChannelMap::ostream_idx</a></div><div class="ttdeci">int ostream_idx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00114">fftools_ffmpeg.h:114</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html_a8174d989c9c3c6bacd2ff229900e3edf"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html#a8174d989c9c3c6bacd2ff229900e3edf">AudioChannelMap::ofile_idx</a></div><div class="ttdeci">int ofile_idx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00114">fftools_ffmpeg.h:114</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html_a81b4cfad9b7f201c8a0be6a030688839"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html#a81b4cfad9b7f201c8a0be6a030688839">AudioChannelMap::file_idx</a></div><div class="ttdeci">int file_idx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00113">fftools_ffmpeg.h:113</a></div></div>
<div class="ttc" id="astruct_audio_channel_map_html_a8f4845075e76274d0c577c258b24d0bf"><div class="ttname"><a href="../../d6/d2c/struct_audio_channel_map.html#a8f4845075e76274d0c577c258b24d0bf">AudioChannelMap::channel_idx</a></div><div class="ttdeci">int channel_idx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00113">fftools_ffmpeg.h:113</a></div></div>
<div class="ttc" id="astruct_filter_graph_html"><div class="ttname"><a href="../../d9/de7/struct_filter_graph.html">FilterGraph</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00310">fftools_ffmpeg.h:310</a></div></div>
<div class="ttc" id="astruct_filter_graph_html_a3ec6739834ba482eacc125e05b59b246"><div class="ttname"><a href="../../d9/de7/struct_filter_graph.html#a3ec6739834ba482eacc125e05b59b246">FilterGraph::index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00311">fftools_ffmpeg.h:311</a></div></div>
<div class="ttc" id="astruct_filter_graph_html_a92c7f6faf7e95b259bce1c717d43b4ee"><div class="ttname"><a href="../../d9/de7/struct_filter_graph.html#a92c7f6faf7e95b259bce1c717d43b4ee">FilterGraph::nb_outputs</a></div><div class="ttdeci">int nb_outputs</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00320">fftools_ffmpeg.h:320</a></div></div>
<div class="ttc" id="astruct_filter_graph_html_aa078de74cae0940747ba826567b74aef"><div class="ttname"><a href="../../d9/de7/struct_filter_graph.html#aa078de74cae0940747ba826567b74aef">FilterGraph::outputs</a></div><div class="ttdeci">OutputFilter ** outputs</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00319">fftools_ffmpeg.h:319</a></div></div>
<div class="ttc" id="astruct_filter_graph_html_ad45139bb5ec5c7766be0b216f9c8c2c4"><div class="ttname"><a href="../../d9/de7/struct_filter_graph.html#ad45139bb5ec5c7766be0b216f9c8c2c4">FilterGraph::graph_desc</a></div><div class="ttdeci">const char * graph_desc</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00312">fftools_ffmpeg.h:312</a></div></div>
<div class="ttc" id="astruct_h_w_accel_html"><div class="ttname"><a href="../../df/d37/struct_h_w_accel.html">HWAccel</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00089">fftools_ffmpeg.h:89</a></div></div>
<div class="ttc" id="astruct_h_w_accel_html_a34f08a5231e54a2fb677aa07bfc2f2b8"><div class="ttname"><a href="../../df/d37/struct_h_w_accel.html#a34f08a5231e54a2fb677aa07bfc2f2b8">HWAccel::id</a></div><div class="ttdeci">enum HWAccelID id</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00091">fftools_ffmpeg.h:92</a></div></div>
<div class="ttc" id="astruct_h_w_accel_html_a82d8cefa2fe98d73edc28eb129b9c510"><div class="ttname"><a href="../../df/d37/struct_h_w_accel.html#a82d8cefa2fe98d73edc28eb129b9c510">HWAccel::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00090">fftools_ffmpeg.h:90</a></div></div>
<div class="ttc" id="astruct_h_w_device_html"><div class="ttname"><a href="../../de/dc7/struct_h_w_device.html">HWDevice</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00096">fftools_ffmpeg.h:96</a></div></div>
<div class="ttc" id="astruct_input_file_html"><div class="ttname"><a href="../../d8/d99/struct_input_file.html">InputFile</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00422">fftools_ffmpeg.h:422</a></div></div>
<div class="ttc" id="astruct_input_file_html_a098fa89f90be39e95d5e42041e8cebfb"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a098fa89f90be39e95d5e42041e8cebfb">InputFile::ts_offset</a></div><div class="ttdeci">int64_t ts_offset</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00433">fftools_ffmpeg.h:433</a></div></div>
<div class="ttc" id="astruct_input_file_html_a0d245cef00bdb0fa9a365ab8480ade2f"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a0d245cef00bdb0fa9a365ab8480ade2f">InputFile::duration</a></div><div class="ttdeci">int64_t duration</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00428">fftools_ffmpeg.h:428</a></div></div>
<div class="ttc" id="astruct_input_file_html_a0d2afa337cfd75b91096045ed941a494"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a0d2afa337cfd75b91096045ed941a494">InputFile::accurate_seek</a></div><div class="ttdeci">int accurate_seek</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00442">fftools_ffmpeg.h:442</a></div></div>
<div class="ttc" id="astruct_input_file_html_a2253004c4ad8d6cb3256821c656bcf19"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a2253004c4ad8d6cb3256821c656bcf19">InputFile::streams</a></div><div class="ttdeci">InputStream * streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d78/fftools__ffprobe_8c_source.html#l00087">fftools_ffprobe.c:87</a></div></div>
<div class="ttc" id="astruct_input_file_html_a4062ac530db413964aa76090995b85cd"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a4062ac530db413964aa76090995b85cd">InputFile::ctx</a></div><div class="ttdeci">AVFormatContext * ctx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00423">fftools_ffmpeg.h:423</a></div></div>
<div class="ttc" id="astruct_input_file_html_a44943da9b6e2a44ba3951a6203b1acc4"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a44943da9b6e2a44ba3951a6203b1acc4">InputFile::rate_emu</a></div><div class="ttdeci">int rate_emu</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00441">fftools_ffmpeg.h:441</a></div></div>
<div class="ttc" id="astruct_input_file_html_a4ffe49e7403ae36ac4bdff5a7a0a3486"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a4ffe49e7403ae36ac4bdff5a7a0a3486">InputFile::input_ts_offset</a></div><div class="ttdeci">int64_t input_ts_offset</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00431">fftools_ffmpeg.h:431</a></div></div>
<div class="ttc" id="astruct_input_file_html_a5553e5dc5f52efdf42e8f5e2afb84156"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a5553e5dc5f52efdf42e8f5e2afb84156">InputFile::loop</a></div><div class="ttdeci">int loop</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00427">fftools_ffmpeg.h:427</a></div></div>
<div class="ttc" id="astruct_input_file_html_a66ab0bb6b0332c27bb6b51a0b67d1459"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a66ab0bb6b0332c27bb6b51a0b67d1459">InputFile::recording_time</a></div><div class="ttdeci">int64_t recording_time</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00437">fftools_ffmpeg.h:437</a></div></div>
<div class="ttc" id="astruct_input_file_html_a6b5d8ebb8e444603bd2c35f683b2790b"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#a6b5d8ebb8e444603bd2c35f683b2790b">InputFile::time_base</a></div><div class="ttdeci">AVRational time_base</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00430">fftools_ffmpeg.h:430</a></div></div>
<div class="ttc" id="astruct_input_file_html_ac2f5772aebd0118a4c464a268dbb4d9c"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#ac2f5772aebd0118a4c464a268dbb4d9c">InputFile::ist_index</a></div><div class="ttdeci">int ist_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00426">fftools_ffmpeg.h:426</a></div></div>
<div class="ttc" id="astruct_input_file_html_af29c0dd6f71cb1454c23abebca06f604"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#af29c0dd6f71cb1454c23abebca06f604">InputFile::start_time</a></div><div class="ttdeci">int64_t start_time</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00435">fftools_ffmpeg.h:435</a></div></div>
<div class="ttc" id="astruct_input_file_html_afee3292b7b58207fe6fd91c8127fac19"><div class="ttname"><a href="../../d8/d99/struct_input_file.html#afee3292b7b58207fe6fd91c8127fac19">InputFile::nb_streams</a></div><div class="ttdeci">int nb_streams</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00438">fftools_ffmpeg.h:438</a></div></div>
<div class="ttc" id="astruct_input_stream_html"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html">InputStream</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00323">fftools_ffmpeg.h:323</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a05769ba0518105626a6d64386795b48f"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a05769ba0518105626a6d64386795b48f">InputStream::hwaccel_pix_fmt</a></div><div class="ttdeci">enum AVPixelFormat hwaccel_pix_fmt</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00402">fftools_ffmpeg.h:403</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a0dae26daa277d99147113de4ea449bc1"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a0dae26daa277d99147113de4ea449bc1">InputStream::ts_scale</a></div><div class="ttdeci">double ts_scale</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00358">fftools_ffmpeg.h:358</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a1ed159d9bc9d71428699968505629b38"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a1ed159d9bc9d71428699968505629b38">InputStream::fix_sub_duration</a></div><div class="ttdeci">int fix_sub_duration</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00367">fftools_ffmpeg.h:367</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a252184ceda81f2d65f63f0470b877bd4"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a252184ceda81f2d65f63f0470b877bd4">InputStream::hwaccel_output_format</a></div><div class="ttdeci">enum AVPixelFormat hwaccel_output_format</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00395">fftools_ffmpeg.h:396</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a550ceee60cb995b284b52962dcba6597"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a550ceee60cb995b284b52962dcba6597">InputStream::dec_ctx</a></div><div class="ttdeci">AVCodecContext * dec_ctx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00332">fftools_ffmpeg.h:332</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a6147a2f3e7cfec58b3f790dfc318e4bc"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a6147a2f3e7cfec58b3f790dfc318e4bc">InputStream::dec</a></div><div class="ttdeci">AVCodec * dec</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00333">fftools_ffmpeg.h:333</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a6c3473c28e30500adb3fa7886e6d7c3e"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a6c3473c28e30500adb3fa7886e6d7c3e">InputStream::hwaccel_id</a></div><div class="ttdeci">enum HWAccelID hwaccel_id</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00390">fftools_ffmpeg.h:393</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a7ff433fc7a48e7b58a4b91e8ff05cf25"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a7ff433fc7a48e7b58a4b91e8ff05cf25">InputStream::filter_in_rescale_delta_last</a></div><div class="ttdeci">int64_t filter_in_rescale_delta_last</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00347">fftools_ffmpeg.h:347</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a809d93e64e76fe2f142102e58dc82a1e"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a809d93e64e76fe2f142102e58dc82a1e">InputStream::reinit_filters</a></div><div class="ttdeci">int reinit_filters</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00390">fftools_ffmpeg.h:390</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a86b730f87f0f8ebd088f94af51d91b96"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a86b730f87f0f8ebd088f94af51d91b96">InputStream::user_set_discard</a></div><div class="ttdeci">int user_set_discard</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00327">fftools_ffmpeg.h:327</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a911d752902aa8d4666ccefd8c912c91e"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a911d752902aa8d4666ccefd8c912c91e">InputStream::max_pts</a></div><div class="ttdeci">int64_t max_pts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00350">fftools_ffmpeg.h:350</a></div></div>
<div class="ttc" id="astruct_input_stream_html_a99e6bf56ec091f8af11744e4b0499327"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#a99e6bf56ec091f8af11744e4b0499327">InputStream::guess_layout_max</a></div><div class="ttdeci">int guess_layout_max</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00363">fftools_ffmpeg.h:363</a></div></div>
<div class="ttc" id="astruct_input_stream_html_abc71c343e0ade7e102adb45badfc6243"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#abc71c343e0ade7e102adb45badfc6243">InputStream::top_field_first</a></div><div class="ttdeci">int top_field_first</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00362">fftools_ffmpeg.h:362</a></div></div>
<div class="ttc" id="astruct_input_stream_html_abcb8222561f1ee84a2f7a2157bed356c"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#abcb8222561f1ee84a2f7a2157bed356c">InputStream::autorotate</a></div><div class="ttdeci">int autorotate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00365">fftools_ffmpeg.h:365</a></div></div>
<div class="ttc" id="astruct_input_stream_html_ac39249a26eeec2ed084fcc433ec9825e"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#ac39249a26eeec2ed084fcc433ec9825e">InputStream::discard</a></div><div class="ttdeci">int discard</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00326">fftools_ffmpeg.h:326</a></div></div>
<div class="ttc" id="astruct_input_stream_html_ac9fc51324b931c1db5c5c1445fe70c3b"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#ac9fc51324b931c1db5c5c1445fe70c3b">InputStream::decoding_needed</a></div><div class="ttdeci">int decoding_needed</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00328">fftools_ffmpeg.h:328</a></div></div>
<div class="ttc" id="astruct_input_stream_html_acf438e2a33238676cb3f68b39ae18049"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#acf438e2a33238676cb3f68b39ae18049">InputStream::st</a></div><div class="ttdeci">AVStream * st</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00325">fftools_ffmpeg.h:325</a></div></div>
<div class="ttc" id="astruct_input_stream_html_ad47d834630eee2dca258aa449fb1df47"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#ad47d834630eee2dca258aa449fb1df47">InputStream::file_index</a></div><div class="ttdeci">int file_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00324">fftools_ffmpeg.h:324</a></div></div>
<div class="ttc" id="astruct_input_stream_html_ae48685e82826c6b5922014d47e2cb6bb"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#ae48685e82826c6b5922014d47e2cb6bb">InputStream::hwaccel_device</a></div><div class="ttdeci">char * hwaccel_device</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00395">fftools_ffmpeg.h:395</a></div></div>
<div class="ttc" id="astruct_input_stream_html_ae73dddf18b49b6660263bc3a73a44290"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#ae73dddf18b49b6660263bc3a73a44290">InputStream::decoder_opts</a></div><div class="ttdeci">AVDictionary * decoder_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00360">fftools_ffmpeg.h:360</a></div></div>
<div class="ttc" id="astruct_input_stream_html_aeb79819841b6d172faf8c108db4ffbd0"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#aeb79819841b6d172faf8c108db4ffbd0">InputStream::min_pts</a></div><div class="ttdeci">int64_t min_pts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00349">fftools_ffmpeg.h:349</a></div></div>
<div class="ttc" id="astruct_input_stream_html_af577e45cb148e174ef437f3cbaa8b628"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#af577e45cb148e174ef437f3cbaa8b628">InputStream::hwaccel_device_type</a></div><div class="ttdeci">enum AVHWDeviceType hwaccel_device_type</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00390">fftools_ffmpeg.h:394</a></div></div>
<div class="ttc" id="astruct_input_stream_html_af76c7165931c721b63008034c94d9275"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#af76c7165931c721b63008034c94d9275">InputStream::nb_samples</a></div><div class="ttdeci">int64_t nb_samples</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00356">fftools_ffmpeg.h:356</a></div></div>
<div class="ttc" id="astruct_input_stream_html_afbaeaac6e0b1fc3095bb90f17d58621d"><div class="ttname"><a href="../../d3/d6e/struct_input_stream.html#afbaeaac6e0b1fc3095bb90f17d58621d">InputStream::framerate</a></div><div class="ttdeci">AVRational framerate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00361">fftools_ffmpeg.h:361</a></div></div>
<div class="ttc" id="astruct_option_def_html"><div class="ttname"><a href="../../dc/d1e/struct_option_def.html">OptionDef</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00187">fftools_cmdutils.h:187</a></div></div>
<div class="ttc" id="astruct_option_def_html_a05e11e0c85a6fde13e30e19db1e30212"><div class="ttname"><a href="../../dc/d1e/struct_option_def.html#a05e11e0c85a6fde13e30e19db1e30212">OptionDef::u</a></div><div class="ttdeci">union OptionDef::@1 u</div></div>
<div class="ttc" id="astruct_option_def_html_a061799fb9cc6538bd4af1b5f95d91014"><div class="ttname"><a href="../../dc/d1e/struct_option_def.html#a061799fb9cc6538bd4af1b5f95d91014">OptionDef::flags</a></div><div class="ttdeci">int flags</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00189">fftools_cmdutils.h:189</a></div></div>
<div class="ttc" id="astruct_option_def_html_a1c25e8faf0036e9b0292fa0db6682d6c"><div class="ttname"><a href="../../dc/d1e/struct_option_def.html#a1c25e8faf0036e9b0292fa0db6682d6c">OptionDef::off</a></div><div class="ttdeci">size_t off</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00212">fftools_cmdutils.h:212</a></div></div>
<div class="ttc" id="astruct_option_def_html_a2948275f26ee39085beb74be603fde72"><div class="ttname"><a href="../../dc/d1e/struct_option_def.html#a2948275f26ee39085beb74be603fde72">OptionDef::name</a></div><div class="ttdeci">const char * name</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00188">fftools_cmdutils.h:188</a></div></div>
<div class="ttc" id="astruct_option_group_def_html"><div class="ttname"><a href="../../db/dd7/struct_option_group_def.html">OptionGroupDef</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00282">fftools_cmdutils.h:282</a></div></div>
<div class="ttc" id="astruct_option_group_html"><div class="ttname"><a href="../../d6/d69/struct_option_group.html">OptionGroup</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00297">fftools_cmdutils.h:297</a></div></div>
<div class="ttc" id="astruct_option_group_html_aad0856a7bcf51e6d5e8b9d007d083910"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#aad0856a7bcf51e6d5e8b9d007d083910">OptionGroup::codec_opts</a></div><div class="ttdeci">AVDictionary * codec_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00304">fftools_cmdutils.h:304</a></div></div>
<div class="ttc" id="astruct_option_group_html_aad5bf1f2e0e3da5827b689f94e05937d"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#aad5bf1f2e0e3da5827b689f94e05937d">OptionGroup::swr_opts</a></div><div class="ttdeci">AVDictionary * swr_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00308">fftools_cmdutils.h:308</a></div></div>
<div class="ttc" id="astruct_option_group_html_ad49cc9faed6022da9329fcd220c8467b"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#ad49cc9faed6022da9329fcd220c8467b">OptionGroup::sws_dict</a></div><div class="ttdeci">AVDictionary * sws_dict</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00307">fftools_cmdutils.h:307</a></div></div>
<div class="ttc" id="astruct_option_group_html_ade02874f0cc6716575a7d02e3c38ac95"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#ade02874f0cc6716575a7d02e3c38ac95">OptionGroup::arg</a></div><div class="ttdeci">const char * arg</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00299">fftools_cmdutils.h:299</a></div></div>
<div class="ttc" id="astruct_option_group_html_aeac5e8e830df2e99aadfe65a471ce8fb"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#aeac5e8e830df2e99aadfe65a471ce8fb">OptionGroup::format_opts</a></div><div class="ttdeci">AVDictionary * format_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00305">fftools_cmdutils.h:305</a></div></div>
<div class="ttc" id="astruct_option_group_html_aee5e1f251f3d88c41a505d0655b410d9"><div class="ttname"><a href="../../d6/d69/struct_option_group.html#aee5e1f251f3d88c41a505d0655b410d9">OptionGroup::resample_opts</a></div><div class="ttdeci">AVDictionary * resample_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00306">fftools_cmdutils.h:306</a></div></div>
<div class="ttc" id="astruct_option_group_list_html"><div class="ttname"><a href="../../d7/d4f/struct_option_group_list.html">OptionGroupList</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00315">fftools_cmdutils.h:315</a></div></div>
<div class="ttc" id="astruct_option_group_list_html_a6ca02ccb04349c3759d6cdf4ef335202"><div class="ttname"><a href="../../d7/d4f/struct_option_group_list.html#a6ca02ccb04349c3759d6cdf4ef335202">OptionGroupList::nb_groups</a></div><div class="ttdeci">int nb_groups</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00319">fftools_cmdutils.h:319</a></div></div>
<div class="ttc" id="astruct_option_group_list_html_a825edf37567a1a7b5ccf81ae6b54827a"><div class="ttname"><a href="../../d7/d4f/struct_option_group_list.html#a825edf37567a1a7b5ccf81ae6b54827a">OptionGroupList::groups</a></div><div class="ttdeci">OptionGroup * groups</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00318">fftools_cmdutils.h:318</a></div></div>
<div class="ttc" id="astruct_option_parse_context_html"><div class="ttname"><a href="../../db/db5/struct_option_parse_context.html">OptionParseContext</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00322">fftools_cmdutils.h:322</a></div></div>
<div class="ttc" id="astruct_option_parse_context_html_a1aea6da0c95924fa2d68bae2a404bd32"><div class="ttname"><a href="../../db/db5/struct_option_parse_context.html#a1aea6da0c95924fa2d68bae2a404bd32">OptionParseContext::global_opts</a></div><div class="ttdeci">OptionGroup global_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00323">fftools_cmdutils.h:323</a></div></div>
<div class="ttc" id="astruct_option_parse_context_html_ac495a79844c7d896aadd2d7a3cb95993"><div class="ttname"><a href="../../db/db5/struct_option_parse_context.html#ac495a79844c7d896aadd2d7a3cb95993">OptionParseContext::groups</a></div><div class="ttdeci">OptionGroupList * groups</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00325">fftools_cmdutils.h:325</a></div></div>
<div class="ttc" id="astruct_options_context_html"><div class="ttname"><a href="../../df/d77/struct_options_context.html">OptionsContext</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00117">fftools_ffmpeg.h:117</a></div></div>
<div class="ttc" id="astruct_options_context_html_a05f340e8bd1fb8084c1ea6e41b09b4bd"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a05f340e8bd1fb8084c1ea6e41b09b4bd">OptionsContext::metadata_map</a></div><div class="ttdeci">SpecifierOpt * metadata_map</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00219">fftools_ffmpeg.h:219</a></div></div>
<div class="ttc" id="astruct_options_context_html_a07d718f49941fb773665ac6f0657bab8"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a07d718f49941fb773665ac6f0657bab8">OptionsContext::mux_preload</a></div><div class="ttdeci">float mux_preload</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00177">fftools_ffmpeg.h:177</a></div></div>
<div class="ttc" id="astruct_options_context_html_a0a7993fd78fe99ec2d1819f8ca7e2a56"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a0a7993fd78fe99ec2d1819f8ca7e2a56">OptionsContext::frame_pix_fmts</a></div><div class="ttdeci">SpecifierOpt * frame_pix_fmts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00138">fftools_ffmpeg.h:138</a></div></div>
<div class="ttc" id="astruct_options_context_html_a0cb98e36b0f4ceaa7700573f3f99a820"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a0cb98e36b0f4ceaa7700573f3f99a820">OptionsContext::dump_attachment</a></div><div class="ttdeci">SpecifierOpt * dump_attachment</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00150">fftools_ffmpeg.h:150</a></div></div>
<div class="ttc" id="astruct_options_context_html_a118cc0b28c0c40281c69827b323e4a78"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a118cc0b28c0c40281c69827b323e4a78">OptionsContext::nb_stream_maps</a></div><div class="ttdeci">int nb_stream_maps</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00163">fftools_ffmpeg.h:163</a></div></div>
<div class="ttc" id="astruct_options_context_html_a1da3f7560a0c9e44cfd8293a5d3d88ab"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a1da3f7560a0c9e44cfd8293a5d3d88ab">OptionsContext::bitexact</a></div><div class="ttdeci">int bitexact</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00180">fftools_ffmpeg.h:180</a></div></div>
<div class="ttc" id="astruct_options_context_html_a279a94fdf145188a7999ec4620fa83d6"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a279a94fdf145188a7999ec4620fa83d6">OptionsContext::start_time</a></div><div class="ttdeci">int64_t start_time</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00121">fftools_ffmpeg.h:121</a></div></div>
<div class="ttc" id="astruct_options_context_html_a295fefa29d7132a93db9110dce6eeab9"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a295fefa29d7132a93db9110dce6eeab9">OptionsContext::format</a></div><div class="ttdeci">const char * format</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00124">fftools_ffmpeg.h:124</a></div></div>
<div class="ttc" id="astruct_options_context_html_a2a21ce6e0d0e8f25a098ac44013ee919"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a2a21ce6e0d0e8f25a098ac44013ee919">OptionsContext::nb_streamid_map</a></div><div class="ttdeci">int nb_streamid_map</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00189">fftools_ffmpeg.h:189</a></div></div>
<div class="ttc" id="astruct_options_context_html_a2c4c55a84195a848045a69557adef98f"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a2c4c55a84195a848045a69557adef98f">OptionsContext::input_ts_offset</a></div><div class="ttdeci">int64_t input_ts_offset</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00142">fftools_ffmpeg.h:142</a></div></div>
<div class="ttc" id="astruct_options_context_html_a2dff4fd7f6b8f7028e4e4fe43f0d3249"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a2dff4fd7f6b8f7028e4e4fe43f0d3249">OptionsContext::audio_sample_rate</a></div><div class="ttdeci">SpecifierOpt * audio_sample_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00130">fftools_ffmpeg.h:130</a></div></div>
<div class="ttc" id="astruct_options_context_html_a2e67c5ed2e0cc9b5cd4a5ff9895d7fc1"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a2e67c5ed2e0cc9b5cd4a5ff9895d7fc1">OptionsContext::nb_audio_channel_maps</a></div><div class="ttdeci">int nb_audio_channel_maps</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00165">fftools_ffmpeg.h:165</a></div></div>
<div class="ttc" id="astruct_options_context_html_a3132753aec8bcb63437da6a28c8104e2"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a3132753aec8bcb63437da6a28c8104e2">OptionsContext::rate_emu</a></div><div class="ttdeci">int rate_emu</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00144">fftools_ffmpeg.h:144</a></div></div>
<div class="ttc" id="astruct_options_context_html_a336023409c88336cfdc784b50d2e0860"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a336023409c88336cfdc784b50d2e0860">OptionsContext::nb_frame_rates</a></div><div class="ttdeci">int nb_frame_rates</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00133">fftools_ffmpeg.h:133</a></div></div>
<div class="ttc" id="astruct_options_context_html_a34f0a7746fbd5a5848fbdb5fac7ce7af"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a34f0a7746fbd5a5848fbdb5fac7ce7af">OptionsContext::nb_attachments</a></div><div class="ttdeci">int nb_attachments</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00170">fftools_ffmpeg.h:170</a></div></div>
<div class="ttc" id="astruct_options_context_html_a3517181834318f5959bd05e47c4837ea"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a3517181834318f5959bd05e47c4837ea">OptionsContext::max_frames</a></div><div class="ttdeci">SpecifierOpt * max_frames</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00193">fftools_ffmpeg.h:193</a></div></div>
<div class="ttc" id="astruct_options_context_html_a41bb08c4be0cdb0706728c266a866834"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a41bb08c4be0cdb0706728c266a866834">OptionsContext::metadata_global_manual</a></div><div class="ttdeci">int metadata_global_manual</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00166">fftools_ffmpeg.h:166</a></div></div>
<div class="ttc" id="astruct_options_context_html_a4675becf36ed5d3e6510b3e9c9ac4d77"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a4675becf36ed5d3e6510b3e9c9ac4d77">OptionsContext::stream_maps</a></div><div class="ttdeci">StreamMap * stream_maps</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00162">fftools_ffmpeg.h:162</a></div></div>
<div class="ttc" id="astruct_options_context_html_a480f12400c3c6da75bf2323d76bc1179"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a480f12400c3c6da75bf2323d76bc1179">OptionsContext::frame_sizes</a></div><div class="ttdeci">SpecifierOpt * frame_sizes</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00136">fftools_ffmpeg.h:136</a></div></div>
<div class="ttc" id="astruct_options_context_html_a53594f37751979e91873fe8282e2e103"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a53594f37751979e91873fe8282e2e103">OptionsContext::nb_max_frames</a></div><div class="ttdeci">int nb_max_frames</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00194">fftools_ffmpeg.h:194</a></div></div>
<div class="ttc" id="astruct_options_context_html_a54dfb761028d4c10ed38c63a29f846ce"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a54dfb761028d4c10ed38c63a29f846ce">OptionsContext::nb_metadata</a></div><div class="ttdeci">int nb_metadata</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00192">fftools_ffmpeg.h:192</a></div></div>
<div class="ttc" id="astruct_options_context_html_a58cdaa9e499f724c724822155f886aa2"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a58cdaa9e499f724c724822155f886aa2">OptionsContext::accurate_seek</a></div><div class="ttdeci">int accurate_seek</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00145">fftools_ffmpeg.h:145</a></div></div>
<div class="ttc" id="astruct_options_context_html_a5bc5b900472685d4c3c33352f3300254"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a5bc5b900472685d4c3c33352f3300254">OptionsContext::metadata_streams_manual</a></div><div class="ttdeci">int metadata_streams_manual</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00167">fftools_ffmpeg.h:167</a></div></div>
<div class="ttc" id="astruct_options_context_html_a65dd95e326773a3c90feee5d1646910c"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a65dd95e326773a3c90feee5d1646910c">OptionsContext::metadata</a></div><div class="ttdeci">SpecifierOpt * metadata</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00191">fftools_ffmpeg.h:191</a></div></div>
<div class="ttc" id="astruct_options_context_html_a66d4d1e81f3c566dbf20027ae37173d8"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a66d4d1e81f3c566dbf20027ae37173d8">OptionsContext::nb_frame_sizes</a></div><div class="ttdeci">int nb_frame_sizes</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00137">fftools_ffmpeg.h:137</a></div></div>
<div class="ttc" id="astruct_options_context_html_a6b29b20e59b90528943e105de4006148"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a6b29b20e59b90528943e105de4006148">OptionsContext::nb_dump_attachment</a></div><div class="ttdeci">int nb_dump_attachment</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00151">fftools_ffmpeg.h:151</a></div></div>
<div class="ttc" id="astruct_options_context_html_a6e38d08faed408a51e45aaf80938d5d6"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a6e38d08faed408a51e45aaf80938d5d6">OptionsContext::recording_time</a></div><div class="ttdeci">int64_t recording_time</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00174">fftools_ffmpeg.h:174</a></div></div>
<div class="ttc" id="astruct_options_context_html_a76aae7426ad256206718ef4c503a882d"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a76aae7426ad256206718ef4c503a882d">OptionsContext::nb_metadata_map</a></div><div class="ttdeci">int nb_metadata_map</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00220">fftools_ffmpeg.h:220</a></div></div>
<div class="ttc" id="astruct_options_context_html_a7af52a5756a9424bbfebe59ab7e08061"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a7af52a5756a9424bbfebe59ab7e08061">OptionsContext::limit_filesize</a></div><div class="ttdeci">uint64_t limit_filesize</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00176">fftools_ffmpeg.h:176</a></div></div>
<div class="ttc" id="astruct_options_context_html_a7e0e4131b5ffb9d53019afd8910fc3ec"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a7e0e4131b5ffb9d53019afd8910fc3ec">OptionsContext::nb_audio_channels</a></div><div class="ttdeci">int nb_audio_channels</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00129">fftools_ffmpeg.h:129</a></div></div>
<div class="ttc" id="astruct_options_context_html_a8d31ed47dd3c6a795047bd4e92e60b4e"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a8d31ed47dd3c6a795047bd4e92e60b4e">OptionsContext::audio_channels</a></div><div class="ttdeci">SpecifierOpt * audio_channels</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00128">fftools_ffmpeg.h:128</a></div></div>
<div class="ttc" id="astruct_options_context_html_a91cbd517481a882c0e2ae831e40b1585"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a91cbd517481a882c0e2ae831e40b1585">OptionsContext::start_time_eof</a></div><div class="ttdeci">int64_t start_time_eof</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00122">fftools_ffmpeg.h:122</a></div></div>
<div class="ttc" id="astruct_options_context_html_a937b3c7359909e3119e2c2e293f6d484"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a937b3c7359909e3119e2c2e293f6d484">OptionsContext::thread_queue_size</a></div><div class="ttdeci">int thread_queue_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00146">fftools_ffmpeg.h:146</a></div></div>
<div class="ttc" id="astruct_options_context_html_a98dc9e32a35d8357e85325bf995fc9ac"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a98dc9e32a35d8357e85325bf995fc9ac">OptionsContext::data_disable</a></div><div class="ttdeci">int data_disable</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00185">fftools_ffmpeg.h:185</a></div></div>
<div class="ttc" id="astruct_options_context_html_a992eda3c4ddcd938885a702e85919cc8"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a992eda3c4ddcd938885a702e85919cc8">OptionsContext::frame_rates</a></div><div class="ttdeci">SpecifierOpt * frame_rates</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00132">fftools_ffmpeg.h:132</a></div></div>
<div class="ttc" id="astruct_options_context_html_a9aa6d216666ea426199e6abd0a79d6cb"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a9aa6d216666ea426199e6abd0a79d6cb">OptionsContext::chapters_input_file</a></div><div class="ttdeci">int chapters_input_file</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00172">fftools_ffmpeg.h:172</a></div></div>
<div class="ttc" id="astruct_options_context_html_a9c7cad5690796e35bc68e5a931cee22c"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a9c7cad5690796e35bc68e5a931cee22c">OptionsContext::streamid_map</a></div><div class="ttdeci">int * streamid_map</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00188">fftools_ffmpeg.h:188</a></div></div>
<div class="ttc" id="astruct_options_context_html_a9cef7b5ff74cf5f810d8bae95b516c66"><div class="ttname"><a href="../../df/d77/struct_options_context.html#a9cef7b5ff74cf5f810d8bae95b516c66">OptionsContext::video_disable</a></div><div class="ttdeci">int video_disable</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00182">fftools_ffmpeg.h:182</a></div></div>
<div class="ttc" id="astruct_options_context_html_aa38553d671e91b5ad6d136923055e5bb"><div class="ttname"><a href="../../df/d77/struct_options_context.html#aa38553d671e91b5ad6d136923055e5bb">OptionsContext::audio_disable</a></div><div class="ttdeci">int audio_disable</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00183">fftools_ffmpeg.h:183</a></div></div>
<div class="ttc" id="astruct_options_context_html_ab05f5a3458331e424098215ded646189"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ab05f5a3458331e424098215ded646189">OptionsContext::metadata_chapters_manual</a></div><div class="ttdeci">int metadata_chapters_manual</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00168">fftools_ffmpeg.h:168</a></div></div>
<div class="ttc" id="astruct_options_context_html_ab5b3f2e73b482fa9b96f74d2cdd0f012"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ab5b3f2e73b482fa9b96f74d2cdd0f012">OptionsContext::nb_program</a></div><div class="ttdeci">int nb_program</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00254">fftools_ffmpeg.h:254</a></div></div>
<div class="ttc" id="astruct_options_context_html_ac73bbf437507775263f8ea53b17f05c6"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ac73bbf437507775263f8ea53b17f05c6">OptionsContext::stop_time</a></div><div class="ttdeci">int64_t stop_time</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00175">fftools_ffmpeg.h:175</a></div></div>
<div class="ttc" id="astruct_options_context_html_accc18b7847026b5885533035c97b50ba"><div class="ttname"><a href="../../df/d77/struct_options_context.html#accc18b7847026b5885533035c97b50ba">OptionsContext::attachments</a></div><div class="ttdeci">const char ** attachments</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00169">fftools_ffmpeg.h:169</a></div></div>
<div class="ttc" id="astruct_options_context_html_ad5b2e0fb210c4bb546852fc813af0797"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ad5b2e0fb210c4bb546852fc813af0797">OptionsContext::program</a></div><div class="ttdeci">SpecifierOpt * program</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00253">fftools_ffmpeg.h:253</a></div></div>
<div class="ttc" id="astruct_options_context_html_ad5d44d5a36310415733fb2b4f8fc9aa5"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ad5d44d5a36310415733fb2b4f8fc9aa5">OptionsContext::nb_frame_pix_fmts</a></div><div class="ttdeci">int nb_frame_pix_fmts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00139">fftools_ffmpeg.h:139</a></div></div>
<div class="ttc" id="astruct_options_context_html_adb4fef1beb9570a46d0ba40c3d309a5b"><div class="ttname"><a href="../../df/d77/struct_options_context.html#adb4fef1beb9570a46d0ba40c3d309a5b">OptionsContext::loop</a></div><div class="ttdeci">int loop</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00143">fftools_ffmpeg.h:143</a></div></div>
<div class="ttc" id="astruct_options_context_html_adefe378fc52e83215a84f9fd8fd40e0e"><div class="ttname"><a href="../../df/d77/struct_options_context.html#adefe378fc52e83215a84f9fd8fd40e0e">OptionsContext::mux_max_delay</a></div><div class="ttdeci">float mux_max_delay</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00178">fftools_ffmpeg.h:178</a></div></div>
<div class="ttc" id="astruct_options_context_html_ae2d67d4b8daf3a4900bef1db8882b163"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ae2d67d4b8daf3a4900bef1db8882b163">OptionsContext::shortest</a></div><div class="ttdeci">int shortest</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00179">fftools_ffmpeg.h:179</a></div></div>
<div class="ttc" id="astruct_options_context_html_ae75f89a074068ab06a98efc15b65bb70"><div class="ttname"><a href="../../df/d77/struct_options_context.html#ae75f89a074068ab06a98efc15b65bb70">OptionsContext::nb_audio_sample_rate</a></div><div class="ttdeci">int nb_audio_sample_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00131">fftools_ffmpeg.h:131</a></div></div>
<div class="ttc" id="astruct_options_context_html_af54b258dc24371896f1278cc2652472e"><div class="ttname"><a href="../../df/d77/struct_options_context.html#af54b258dc24371896f1278cc2652472e">OptionsContext::subtitle_disable</a></div><div class="ttdeci">int subtitle_disable</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00184">fftools_ffmpeg.h:184</a></div></div>
<div class="ttc" id="astruct_options_context_html_af81d53f595b3e6793b44515fe556eedb"><div class="ttname"><a href="../../df/d77/struct_options_context.html#af81d53f595b3e6793b44515fe556eedb">OptionsContext::seek_timestamp</a></div><div class="ttdeci">int seek_timestamp</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00123">fftools_ffmpeg.h:123</a></div></div>
<div class="ttc" id="astruct_options_context_html_afbfd63b5be2c974c0a2dbf1911ab678b"><div class="ttname"><a href="../../df/d77/struct_options_context.html#afbfd63b5be2c974c0a2dbf1911ab678b">OptionsContext::audio_channel_maps</a></div><div class="ttdeci">AudioChannelMap * audio_channel_maps</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00164">fftools_ffmpeg.h:164</a></div></div>
<div class="ttc" id="astruct_options_context_html_affab676ea6f867fa622a0a642d8dacf8"><div class="ttname"><a href="../../df/d77/struct_options_context.html#affab676ea6f867fa622a0a642d8dacf8">OptionsContext::g</a></div><div class="ttdeci">OptionGroup * g</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00118">fftools_ffmpeg.h:118</a></div></div>
<div class="ttc" id="astruct_output_file_html"><div class="ttname"><a href="../../de/df2/struct_output_file.html">OutputFile</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00594">fftools_ffmpeg.h:594</a></div></div>
<div class="ttc" id="astruct_output_file_html_a4482c7ccf1b6d9f56a7b02490a60fbd8"><div class="ttname"><a href="../../de/df2/struct_output_file.html#a4482c7ccf1b6d9f56a7b02490a60fbd8">OutputFile::limit_filesize</a></div><div class="ttdeci">uint64_t limit_filesize</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00600">fftools_ffmpeg.h:600</a></div></div>
<div class="ttc" id="astruct_output_file_html_a6bfbcb8e4d6564ae0c488d58c0fb0d5f"><div class="ttname"><a href="../../de/df2/struct_output_file.html#a6bfbcb8e4d6564ae0c488d58c0fb0d5f">OutputFile::ctx</a></div><div class="ttdeci">AVFormatContext * ctx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00595">fftools_ffmpeg.h:595</a></div></div>
<div class="ttc" id="astruct_output_file_html_aa4fee66db612c26276b5de30d834d5e0"><div class="ttname"><a href="../../de/df2/struct_output_file.html#aa4fee66db612c26276b5de30d834d5e0">OutputFile::start_time</a></div><div class="ttdeci">int64_t start_time</div><div class="ttdoc">start time in microseconds == AV_TIME_BASE units</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00599">fftools_ffmpeg.h:599</a></div></div>
<div class="ttc" id="astruct_output_file_html_aac74ddf07f90ad30cd5ddf80583468ec"><div class="ttname"><a href="../../de/df2/struct_output_file.html#aac74ddf07f90ad30cd5ddf80583468ec">OutputFile::opts</a></div><div class="ttdeci">AVDictionary * opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00596">fftools_ffmpeg.h:596</a></div></div>
<div class="ttc" id="astruct_output_file_html_ac09855bfd066c44eb761f84e28f00dce"><div class="ttname"><a href="../../de/df2/struct_output_file.html#ac09855bfd066c44eb761f84e28f00dce">OutputFile::ost_index</a></div><div class="ttdeci">int ost_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00597">fftools_ffmpeg.h:597</a></div></div>
<div class="ttc" id="astruct_output_file_html_acfef99893985d28ae7f7f6a92e6d1bd7"><div class="ttname"><a href="../../de/df2/struct_output_file.html#acfef99893985d28ae7f7f6a92e6d1bd7">OutputFile::shortest</a></div><div class="ttdeci">int shortest</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00602">fftools_ffmpeg.h:602</a></div></div>
<div class="ttc" id="astruct_output_file_html_ad160ce6520aad386bead7eb45f6f55a0"><div class="ttname"><a href="../../de/df2/struct_output_file.html#ad160ce6520aad386bead7eb45f6f55a0">OutputFile::recording_time</a></div><div class="ttdeci">int64_t recording_time</div><div class="ttdoc">desired length of the resulting file in microseconds == AV_TIME_BASE units</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00598">fftools_ffmpeg.h:598</a></div></div>
<div class="ttc" id="astruct_output_filter_html"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html">OutputFilter</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00287">fftools_ffmpeg.h:287</a></div></div>
<div class="ttc" id="astruct_output_filter_html_a0a621d752f3ab33e67f0a8f22bee4118"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#a0a621d752f3ab33e67f0a8f22bee4118">OutputFilter::width</a></div><div class="ttdeci">int width</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00298">fftools_ffmpeg.h:298</a></div></div>
<div class="ttc" id="astruct_output_filter_html_a1571021ae59382241c925f7ee613cd7d"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#a1571021ae59382241c925f7ee613cd7d">OutputFilter::out_tmp</a></div><div class="ttdeci">AVFilterInOut * out_tmp</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00294">fftools_ffmpeg.h:294</a></div></div>
<div class="ttc" id="astruct_output_filter_html_a2d283eee3e140f822b5eb381890ba035"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#a2d283eee3e140f822b5eb381890ba035">OutputFilter::ost</a></div><div class="ttdeci">struct OutputStream * ost</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00289">fftools_ffmpeg.h:289</a></div></div>
<div class="ttc" id="astruct_output_filter_html_a4f141db3516fc737c8876f817a68b16b"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#a4f141db3516fc737c8876f817a68b16b">OutputFilter::channel_layouts</a></div><div class="ttdeci">uint64_t * channel_layouts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00306">fftools_ffmpeg.h:306</a></div></div>
<div class="ttc" id="astruct_output_filter_html_a9f66eff9402b2790dfcea63a0010aecc"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#a9f66eff9402b2790dfcea63a0010aecc">OutputFilter::sample_rates</a></div><div class="ttdeci">int * sample_rates</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00307">fftools_ffmpeg.h:307</a></div></div>
<div class="ttc" id="astruct_output_filter_html_aaf9223843b6d814783f74c85b38de080"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#aaf9223843b6d814783f74c85b38de080">OutputFilter::height</a></div><div class="ttdeci">int height</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00298">fftools_ffmpeg.h:298</a></div></div>
<div class="ttc" id="astruct_output_filter_html_ab0be1ec413ca98912667f1bf76fd2588"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#ab0be1ec413ca98912667f1bf76fd2588">OutputFilter::sample_rate</a></div><div class="ttdeci">int sample_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00301">fftools_ffmpeg.h:301</a></div></div>
<div class="ttc" id="astruct_output_filter_html_acd4f04cfb3db05beef2507e397aef9aa"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#acd4f04cfb3db05beef2507e397aef9aa">OutputFilter::formats</a></div><div class="ttdeci">int * formats</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00305">fftools_ffmpeg.h:305</a></div></div>
<div class="ttc" id="astruct_output_filter_html_ad45013a89f85087d03166652a94d1453"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#ad45013a89f85087d03166652a94d1453">OutputFilter::frame_rate</a></div><div class="ttdeci">AVRational frame_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00299">fftools_ffmpeg.h:299</a></div></div>
<div class="ttc" id="astruct_output_filter_html_ae591539feb7f41d19236244a0dcf3896"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#ae591539feb7f41d19236244a0dcf3896">OutputFilter::channel_layout</a></div><div class="ttdeci">uint64_t channel_layout</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00302">fftools_ffmpeg.h:302</a></div></div>
<div class="ttc" id="astruct_output_filter_html_aeba350050d2035d755254154e6551c49"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#aeba350050d2035d755254154e6551c49">OutputFilter::format</a></div><div class="ttdeci">int format</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00300">fftools_ffmpeg.h:300</a></div></div>
<div class="ttc" id="astruct_output_filter_html_aed4c46a5df26ff71f3f718a0056af294"><div class="ttname"><a href="../../d0/d0f/struct_output_filter.html#aed4c46a5df26ff71f3f718a0056af294">OutputFilter::type</a></div><div class="ttdeci">enum AVMediaType type</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00294">fftools_ffmpeg.h:295</a></div></div>
<div class="ttc" id="astruct_output_stream_html"><div class="ttname"><a href="../../db/dde/struct_output_stream.html">OutputStream</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00472">fftools_ffmpeg.h:472</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a006aed9d49962d931da10f19a135f2bb"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a006aed9d49962d931da10f19a135f2bb">OutputStream::max_muxing_queue_size</a></div><div class="ttdeci">int max_muxing_queue_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00573">fftools_ffmpeg.h:573</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a0c7606649d3fd916e9eaf19e12fd92c7"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a0c7606649d3fd916e9eaf19e12fd92c7">OutputStream::swr_opts</a></div><div class="ttdeci">AVDictionary * swr_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00540">fftools_ffmpeg.h:540</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a1c371db7f52c96799a042c70ed85ce2a"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a1c371db7f52c96799a042c70ed85ce2a">OutputStream::copy_initial_nonkeyframes</a></div><div class="ttdeci">int copy_initial_nonkeyframes</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00555">fftools_ffmpeg.h:555</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a1fd50164583dbdc664706be005120c1d"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a1fd50164583dbdc664706be005120c1d">OutputStream::last_mux_dts</a></div><div class="ttdeci">int64_t last_mux_dts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00487">fftools_ffmpeg.h:487</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a236bf5647b00c43936bda537db39ec26"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a236bf5647b00c43936bda537db39ec26">OutputStream::top_field_first</a></div><div class="ttdeci">int top_field_first</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00510">fftools_ffmpeg.h:510</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a2a77c9bd86203478143c85e26e67df3d"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a2a77c9bd86203478143c85e26e67df3d">OutputStream::source_index</a></div><div class="ttdeci">int source_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00475">fftools_ffmpeg.h:475</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a2cb215b02eb510c4b19947063a5d5bd8"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a2cb215b02eb510c4b19947063a5d5bd8">OutputStream::finished</a></div><div class="ttdeci">OSTFinished finished</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00543">fftools_ffmpeg.h:543</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a343c63e0cf4f0aca4fb4727b2e6fa829"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a343c63e0cf4f0aca4fb4727b2e6fa829">OutputStream::audio_channels_map</a></div><div class="ttdeci">int * audio_channels_map</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00527">fftools_ffmpeg.h:527</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a363d95a998c8dffa3a493ccf39f39309"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a363d95a998c8dffa3a493ccf39f39309">OutputStream::frame_aspect_ratio</a></div><div class="ttdeci">AVRational frame_aspect_ratio</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00515">fftools_ffmpeg.h:515</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a3752b3243f9a089543bc1dc67b3de3fc"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a3752b3243f9a089543bc1dc67b3de3fc">OutputStream::rotate_override_value</a></div><div class="ttdeci">double rotate_override_value</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00513">fftools_ffmpeg.h:513</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a4aabbeb1e0b98e2211be7f36a3cde2aa"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a4aabbeb1e0b98e2211be7f36a3cde2aa">OutputStream::autoscale</a></div><div class="ttdeci">int autoscale</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00512">fftools_ffmpeg.h:512</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a50bc46d7c7636e2abbfe066872d0c1d0"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a50bc46d7c7636e2abbfe066872d0c1d0">OutputStream::audio_channels_mapped</a></div><div class="ttdeci">int audio_channels_mapped</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00528">fftools_ffmpeg.h:528</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a51858c10bfe635eb784e3651e6d494f8"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a51858c10bfe635eb784e3651e6d494f8">OutputStream::force_fps</a></div><div class="ttdeci">int force_fps</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00509">fftools_ffmpeg.h:509</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a6cb813f6df7342f0f37825241a3cd51b"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a6cb813f6df7342f0f37825241a3cd51b">OutputStream::max_frames</a></div><div class="ttdeci">int64_t max_frames</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00497">fftools_ffmpeg.h:497</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a6e2ea45e90d7df93766f580a39469719"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a6e2ea45e90d7df93766f580a39469719">OutputStream::muxing_queue_data_threshold</a></div><div class="ttdeci">size_t muxing_queue_data_threshold</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00585">fftools_ffmpeg.h:585</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a76d4d92835e9dd3d0619e79e4fb762c6"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a76d4d92835e9dd3d0619e79e4fb762c6">OutputStream::apad</a></div><div class="ttdeci">char * apad</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00542">fftools_ffmpeg.h:542</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a84762af19c6801936fd49d53170a3682"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a84762af19c6801936fd49d53170a3682">OutputStream::resample_opts</a></div><div class="ttdeci">AVDictionary * resample_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00541">fftools_ffmpeg.h:541</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a89138b534350318574ca78cdb1c4ab4a"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a89138b534350318574ca78cdb1c4ab4a">OutputStream::max_frame_rate</a></div><div class="ttdeci">AVRational max_frame_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00507">fftools_ffmpeg.h:507</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a8fe39b5fa1ad275e6d11dd5affaee68d"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a8fe39b5fa1ad275e6d11dd5affaee68d">OutputStream::enc_timebase</a></div><div class="ttdeci">AVRational enc_timebase</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00490">fftools_ffmpeg.h:490</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a9ac0b71747fe93f498224dacf1b0b674"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a9ac0b71747fe93f498224dacf1b0b674">OutputStream::stream_copy</a></div><div class="ttdeci">int stream_copy</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00545">fftools_ffmpeg.h:545</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a9c6665bb019599fc7aeae17c1dadb814"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a9c6665bb019599fc7aeae17c1dadb814">OutputStream::muxing_queue</a></div><div class="ttdeci">AVFifoBuffer * muxing_queue</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00576">fftools_ffmpeg.h:576</a></div></div>
<div class="ttc" id="astruct_output_stream_html_a9f511baf1fef17812bf650c35c828382"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#a9f511baf1fef17812bf650c35c828382">OutputStream::ref_par</a></div><div class="ttdeci">AVCodecParameters * ref_par</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00495">fftools_ffmpeg.h:495</a></div></div>
<div class="ttc" id="astruct_output_stream_html_aa2465b9c30830c607e3af293c44317ad"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#aa2465b9c30830c607e3af293c44317ad">OutputStream::forced_keyframes</a></div><div class="ttdeci">char * forced_keyframes</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00522">fftools_ffmpeg.h:522</a></div></div>
<div class="ttc" id="astruct_output_stream_html_aa65108bd50cba339c4ad09ffc5fe77ac"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#aa65108bd50cba339c4ad09ffc5fe77ac">OutputStream::attachment_filename</a></div><div class="ttdeci">const char * attachment_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00554">fftools_ffmpeg.h:554</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ab13acc03a389653d882f221141f12ae3"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ab13acc03a389653d882f221141f12ae3">OutputStream::frame_rate</a></div><div class="ttdeci">AVRational frame_rate</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00506">fftools_ffmpeg.h:506</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ab60bee90a33577cbdbb82e9c5fb2cf08"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ab60bee90a33577cbdbb82e9c5fb2cf08">OutputStream::copy_prior_start</a></div><div class="ttdeci">int copy_prior_start</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00556">fftools_ffmpeg.h:556</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ab7b674f9a0c60e3e02526d560a83f583"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ab7b674f9a0c60e3e02526d560a83f583">OutputStream::enc_ctx</a></div><div class="ttdeci">AVCodecContext * enc_ctx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00494">fftools_ffmpeg.h:494</a></div></div>
<div class="ttc" id="astruct_output_stream_html_abc0329cada4c47662e2777d392a38efb"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#abc0329cada4c47662e2777d392a38efb">OutputStream::sync_ist</a></div><div class="ttdeci">struct InputStream * sync_ist</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00481">fftools_ffmpeg.h:481</a></div></div>
<div class="ttc" id="astruct_output_stream_html_abd0357b7272cdb232e2db73eb458329e"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#abd0357b7272cdb232e2db73eb458329e">OutputStream::encoding_needed</a></div><div class="ttdeci">int encoding_needed</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00477">fftools_ffmpeg.h:477</a></div></div>
<div class="ttc" id="astruct_output_stream_html_abf222748d6af0fb0c72fa6b77fe2294e"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#abf222748d6af0fb0c72fa6b77fe2294e">OutputStream::encoder_opts</a></div><div class="ttdeci">AVDictionary * encoder_opts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00538">fftools_ffmpeg.h:538</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ac11510a2eeed3e6a14f0fbc85db2e088"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ac11510a2eeed3e6a14f0fbc85db2e088">OutputStream::st</a></div><div class="ttdeci">AVStream * st</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00476">fftools_ffmpeg.h:476</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ac2cdba9dbd9a315fd3ea90cbfb634409"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ac2cdba9dbd9a315fd3ea90cbfb634409">OutputStream::filters</a></div><div class="ttdeci">char * filters</div><div class="ttdoc">filtergraph associated to the -filter option</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00535">fftools_ffmpeg.h:535</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ac35ecb04b8b6ca22d10180918de95be4"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ac35ecb04b8b6ca22d10180918de95be4">OutputStream::avfilter</a></div><div class="ttdeci">char * avfilter</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00534">fftools_ffmpeg.h:534</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ac99140cc5be4b4ed439d5e4c854189fa"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ac99140cc5be4b4ed439d5e4c854189fa">OutputStream::forced_kf_ref_pts</a></div><div class="ttdeci">int64_t forced_kf_ref_pts</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00518">fftools_ffmpeg.h:518</a></div></div>
<div class="ttc" id="astruct_output_stream_html_acbe9d7fddd3daaab6e9337099ec824f2"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#acbe9d7fddd3daaab6e9337099ec824f2">OutputStream::filters_script</a></div><div class="ttdeci">char * filters_script</div><div class="ttdoc">filtergraph script associated to the -filter_script option</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00536">fftools_ffmpeg.h:536</a></div></div>
<div class="ttc" id="astruct_output_stream_html_acbf75f011ccbdcad1b3b3e4c3f028b5e"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#acbf75f011ccbdcad1b3b3e4c3f028b5e">OutputStream::bsf_ctx</a></div><div class="ttdeci">AVBSFContext * bsf_ctx</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00492">fftools_ffmpeg.h:492</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ad314a1a8fad54930d177f0951f574ef2"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ad314a1a8fad54930d177f0951f574ef2">OutputStream::enc</a></div><div class="ttdeci">AVCodec * enc</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00496">fftools_ffmpeg.h:496</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ad55eb675077dc7b468f15f02a03ded5a"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ad55eb675077dc7b468f15f02a03ded5a">OutputStream::sws_dict</a></div><div class="ttdeci">AVDictionary * sws_dict</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00539">fftools_ffmpeg.h:539</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ad8926e7de923b3eeabd66770caacfe1e"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ad8926e7de923b3eeabd66770caacfe1e">OutputStream::filter</a></div><div class="ttdeci">OutputFilter * filter</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00533">fftools_ffmpeg.h:533</a></div></div>
<div class="ttc" id="astruct_output_stream_html_add36114220f77c320ff544748163a15d"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#add36114220f77c320ff544748163a15d">OutputStream::disposition</a></div><div class="ttdeci">char * disposition</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00557">fftools_ffmpeg.h:557</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ae22fe6ee1999d45be0d8722d04294a22"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ae22fe6ee1999d45be0d8722d04294a22">OutputStream::index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00474">fftools_ffmpeg.h:474</a></div></div>
<div class="ttc" id="astruct_output_stream_html_ae27ba6d2051d62f704c5693133b58b11"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#ae27ba6d2051d62f704c5693133b58b11">OutputStream::rotate_overridden</a></div><div class="ttdeci">int rotate_overridden</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00511">fftools_ffmpeg.h:511</a></div></div>
<div class="ttc" id="astruct_output_stream_html_af0ca53e6e06775f61dcc13af0a11ab82"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#af0ca53e6e06775f61dcc13af0a11ab82">OutputStream::keep_pix_fmt</a></div><div class="ttdeci">int keep_pix_fmt</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00559">fftools_ffmpeg.h:559</a></div></div>
<div class="ttc" id="astruct_output_stream_html_af18a803d7d7db08a1cdac6b54fc1a58f"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#af18a803d7d7db08a1cdac6b54fc1a58f">OutputStream::muxing_queue_data_size</a></div><div class="ttdeci">size_t muxing_queue_data_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00582">fftools_ffmpeg.h:582</a></div></div>
<div class="ttc" id="astruct_output_stream_html_af1ef91b1ddb70244dd37415f774e025b"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#af1ef91b1ddb70244dd37415f774e025b">OutputStream::logfile</a></div><div class="ttdeci">FILE * logfile</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00531">fftools_ffmpeg.h:531</a></div></div>
<div class="ttc" id="astruct_output_stream_html_af608105788daa4300771669d992ef890"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#af608105788daa4300771669d992ef890">OutputStream::file_index</a></div><div class="ttdeci">int file_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00473">fftools_ffmpeg.h:473</a></div></div>
<div class="ttc" id="astruct_output_stream_html_afd6ee54ae3807e7bdaec44f2c12c99e1"><div class="ttname"><a href="../../db/dde/struct_output_stream.html#afd6ee54ae3807e7bdaec44f2c12c99e1">OutputStream::logfile_prefix</a></div><div class="ttdeci">char * logfile_prefix</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00530">fftools_ffmpeg.h:530</a></div></div>
<div class="ttc" id="astruct_specifier_opt_html"><div class="ttname"><a href="../../dd/da5/struct_specifier_opt.html">SpecifierOpt</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00175">fftools_cmdutils.h:175</a></div></div>
<div class="ttc" id="astruct_specifier_opt_html_a396d3e67fde3c170cda70842a1c35521"><div class="ttname"><a href="../../dd/da5/struct_specifier_opt.html#a396d3e67fde3c170cda70842a1c35521">SpecifierOpt::u</a></div><div class="ttdeci">union SpecifierOpt::@0 u</div></div>
<div class="ttc" id="astruct_specifier_opt_html_a491092bfda9281b509e9f62195490ce4"><div class="ttname"><a href="../../dd/da5/struct_specifier_opt.html#a491092bfda9281b509e9f62195490ce4">SpecifierOpt::str</a></div><div class="ttdeci">uint8_t * str</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00178">fftools_cmdutils.h:178</a></div></div>
<div class="ttc" id="astruct_specifier_opt_html_a7d6d60788f2f4e5bca13634aba58177f"><div class="ttname"><a href="../../dd/da5/struct_specifier_opt.html#a7d6d60788f2f4e5bca13634aba58177f">SpecifierOpt::i</a></div><div class="ttdeci">int i</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00179">fftools_cmdutils.h:179</a></div></div>
<div class="ttc" id="astruct_specifier_opt_html_ab83e423aec2a2d42a29daae047dcdb81"><div class="ttname"><a href="../../dd/da5/struct_specifier_opt.html#ab83e423aec2a2d42a29daae047dcdb81">SpecifierOpt::specifier</a></div><div class="ttdeci">char * specifier</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4e/fftools__cmdutils_8h_source.html#l00176">fftools_cmdutils.h:176</a></div></div>
<div class="ttc" id="astruct_stream_map_html"><div class="ttname"><a href="../../db/d60/struct_stream_map.html">StreamMap</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00103">fftools_ffmpeg.h:103</a></div></div>
<div class="ttc" id="astruct_stream_map_html_a2982108d57751e19c308fe338361b066"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#a2982108d57751e19c308fe338361b066">StreamMap::stream_index</a></div><div class="ttdeci">int stream_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00106">fftools_ffmpeg.h:106</a></div></div>
<div class="ttc" id="astruct_stream_map_html_a4b146ee6da0df9d55d435d9153636504"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#a4b146ee6da0df9d55d435d9153636504">StreamMap::disabled</a></div><div class="ttdeci">int disabled</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00104">fftools_ffmpeg.h:104</a></div></div>
<div class="ttc" id="astruct_stream_map_html_a8839b093e6e8ae59892cfe68d9dc99c6"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#a8839b093e6e8ae59892cfe68d9dc99c6">StreamMap::sync_stream_index</a></div><div class="ttdeci">int sync_stream_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00108">fftools_ffmpeg.h:108</a></div></div>
<div class="ttc" id="astruct_stream_map_html_aca10df0c2fe6f0e6c13c7b536f6ef7d2"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#aca10df0c2fe6f0e6c13c7b536f6ef7d2">StreamMap::linklabel</a></div><div class="ttdeci">char * linklabel</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00109">fftools_ffmpeg.h:109</a></div></div>
<div class="ttc" id="astruct_stream_map_html_aebf79dd4732117dab9f6b88ffe0d6fb0"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#aebf79dd4732117dab9f6b88ffe0d6fb0">StreamMap::sync_file_index</a></div><div class="ttdeci">int sync_file_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00107">fftools_ffmpeg.h:107</a></div></div>
<div class="ttc" id="astruct_stream_map_html_af8b5bac41a8831242ead1441bdca6783"><div class="ttname"><a href="../../db/d60/struct_stream_map.html#af8b5bac41a8831242ead1441bdca6783">StreamMap::file_index</a></div><div class="ttdeci">int file_index</div><div class="ttdef"><b>Definition:</b> <a href="../../d7/db3/fftools__ffmpeg_8h_source.html#l00105">fftools_ffmpeg.h:105</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 1 2021 23:46:50 for FFmpegKit Android API by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
